Skip to content

Commit

Permalink
Improve test formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Dec 3, 2024
1 parent 0e36596 commit 1efe444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/manager/api/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def test_apply_on_incomplete_information(self, db: DatabaseTransactionFixture):
)
authenticated_by_weird_identifier.apply(patron)
assert "1234" == patron.authorization_identifier
assert None == patron.last_external_sync
assert patron.last_external_sync is None

def test_get_or_create_patron(
self, patron_data: PatronData, db: DatabaseTransactionFixture
Expand All @@ -419,7 +419,7 @@ def test_get_or_create_patron(
)
assert patron.authorization_identifier == "2"
assert default_library == patron.library
assert is_new == True
assert is_new is True
assert analytics.last_event_type == CirculationEvent.NEW_PATRON
assert analytics.count == 1

Expand All @@ -436,7 +436,7 @@ def test_get_or_create_patron(
db.session, default_library.id, analytics
)
assert patron.authorization_identifier == "2"
assert is_new == False
assert is_new is False
assert patron.neighborhood == "Achewood"
assert analytics.count == 1

Expand Down

0 comments on commit 1efe444

Please sign in to comment.