Skip to content

Commit

Permalink
Pass --enable-keyring in keyring test
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoopJ committed Aug 10, 2022
1 parent 1cb2cd5 commit ec0348d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/functional/test_install_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def get_credential(url, username):
keyring_path.write_text(keyring_content)

with server_running(server):
result = script.pip(
args = [
"install",
"--index-url",
url,
Expand All @@ -409,7 +409,10 @@ def get_credential(url, username):
"--client-cert",
cert_path,
"simple",
)
]
if auth_needed:
args.append("--enable-keyring")
result = script.pip(*args)

if auth_needed:
assert "get_credential was called" in result.stderr
Expand Down

0 comments on commit ec0348d

Please sign in to comment.