Skip to content

Commit

Permalink
Add a test capturing the missed expectation. Ref #668.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Mar 23, 2024
1 parent a62ff82 commit bc34083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions keyring/testing/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ def test_credential(self):
('user2', 'password2'),
)

def test_empty_username(self):
self.set_password('service1', '', 'password1')
assert self.keyring.get_password('service1', '') == 'password1'

def test_set_properties(self, monkeypatch):
env = dict(KEYRING_PROPERTY_FOO_BAR='fizz buzz', OTHER_SETTING='ignore me')
monkeypatch.setattr(os, 'environ', env)
Expand Down

0 comments on commit bc34083

Please sign in to comment.