Skip to content

Commit

Permalink
feat: Remove floating point numbers testing
Browse files Browse the repository at this point in the history
  • Loading branch information
takahiromitsui committed Oct 20, 2023
1 parent c9efc61 commit 89fa150
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion tests/e2e/api/versions/test_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def test_get_party_donations(self, setup_postgres_party_related_tables):
assert len(response.json()) == 4
# Assert party donation
assert response.json()[0]["id"] == 4
assert response.json()[0]["amount"] == 1000.0
assert response.json()[0]["date"] == "2023-01-01"
# Assert party
assert response.json()[0]["party"]["id"] == 2
Expand Down
1 change: 0 additions & 1 deletion tests/unit/db/models/test_party_donation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class TestPartyDonation:
def test_insert_party_donation_valid(self, session, setup_party_donations):
result = session.query(PartyDonation).filter(PartyDonation.id == 1).first()
# Assert
assert result.amount == 1000.0
assert result.date == date(2020, 1, 1)

@pytest.mark.xfail(raises=Exception)
Expand Down

0 comments on commit 89fa150

Please sign in to comment.