Skip to content

Commit

Permalink
tests: disable keyring instead of setting a fail keyring
Browse files Browse the repository at this point in the history
  • Loading branch information
radoering authored and abn committed Nov 17, 2024
1 parent 13541e1 commit a39bc5f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,9 @@ def config(
auth_config_source: DictConfigSource,
mocker: MockerFixture,
) -> Config:
import keyring

from keyring.backends.fail import Keyring

keyring.set_keyring(Keyring()) # type: ignore[no-untyped-call]

c = Config()
c.merge(config_source.config)
c.config["keyring"]["enabled"] = False
c.set_config_source(config_source)
c.set_auth_config_source(auth_config_source)

Expand Down

0 comments on commit a39bc5f

Please sign in to comment.