From 17b759908eb62e39d05740993eb2381a2a8b783e Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Tue, 17 Oct 2023 09:22:46 +0200 Subject: [PATCH] Make test_git work for priveleged users (#805) The test for private repos will actually succeed if one has a credential.store which allows you to access the repository. --- tests/test_git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_git.py b/tests/test_git.py index b7e15f59..616cd440 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -43,5 +43,5 @@ def test_git_missing_repo(self): def test_git_private_repo(self): """Check we get the right exception when credentials are required.""" self.assertRaises(RuntimeError, git, ( - "ls-remote", "-ht", PRIVATE_REPO, + "-c", "credential.helper=", "ls-remote", "-ht", PRIVATE_REPO, ), prompt=False)