Skip to content

Commit

Permalink
pytest-fixtures2
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshrevadi committed Mar 24, 2023
1 parent 870b674 commit 55e6de6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ def keyring_fixture():
keyring.get_password('vorta-repo', test_repo_url)

yield
# Check if the password still exists after running the test
password = keyring.get_password('vorta-repo', test_repo_url)
assert password is not None

# Remove password from keyring if not removed
keyring.remove_password('vorta-repo', test_repo_url)

Expand Down

0 comments on commit 55e6de6

Please sign in to comment.