Skip to content

Commit

Permalink
feat: Fix test_repository
Browse files Browse the repository at this point in the history
  • Loading branch information
takahiromitsui committed Oct 20, 2023
1 parent 9a403d5 commit 5712990
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/unit/api/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ def test_repository_can_list_all_party_donations(self, session):
assert retrieved_list[0].date == date(2020, 1, 6)
assert retrieved_list[-1].date == date(2020, 1, 1)
# Cleanup
session.execute(text("DELETE FROM party_donation"))
session.commit()
delete_party_donation(session)

# list
def test_repository_can_list_all_party_donations_with_party_ids(self, session):
Expand All @@ -133,5 +132,4 @@ def test_repository_can_list_all_party_donations_with_party_ids(self, session):
assert retrieved_list[0].date == date(2020, 1, 4)
assert retrieved_list[-1].date == date(2020, 1, 1)
# Cleanup
session.execute(text("DELETE FROM party_donation"))
session.commit()
delete_party_donation(session)

0 comments on commit 5712990

Please sign in to comment.