Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 15, 2022
1 parent e0edf85 commit efe30b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/utils/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@ def test_authenticator_uses_empty_strings_as_default_username(
def test_authenticator_falls_back_to_keyring_url(
config, mock_remote, http, with_simple_keyring, dummy_keyring
):
config.merge(
{"repositories": {"foo": {"url": "https://foo.bar/simple/"}}}
)
config.merge({"repositories": {"foo": {"url": "https://foo.bar/simple/"}}})

dummy_keyring.set_password(
"https://foo.bar/simple/", None, SimpleCredential(None, "bar")
Expand All @@ -148,9 +146,7 @@ def test_authenticator_falls_back_to_keyring_url(
def test_authenticator_falls_back_to_keyring_netloc(
config, mock_remote, http, with_simple_keyring, dummy_keyring
):
config.merge(
{"repositories": {"foo": {"url": "https://foo.bar/simple/"}}}
)
config.merge({"repositories": {"foo": {"url": "https://foo.bar/simple/"}}})

dummy_keyring.set_password("foo.bar", None, SimpleCredential(None, "bar"))

Expand Down

0 comments on commit efe30b3

Please sign in to comment.