Skip to content

Commit

Permalink
Make test_git work for priveleged users (#805)
Browse files Browse the repository at this point in the history
The test for private repos will actually succeed if one has
a credential.store which allows you to access the repository.
  • Loading branch information
ktf authored Oct 17, 2023
1 parent bf63682 commit 17b7599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 17b7599

Please sign in to comment.