From 89fa150f6199acc8e8b16fd9c25246f292f0b060 Mon Sep 17 00:00:00 2001 From: Takahiro Mitsui Date: Fri, 20 Oct 2023 09:59:56 +0200 Subject: [PATCH] feat: Remove floating point numbers testing --- tests/e2e/api/versions/test_v1.py | 1 - tests/unit/db/models/test_party_donation.py | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/e2e/api/versions/test_v1.py b/tests/e2e/api/versions/test_v1.py index 573625a7..0cf0af4e 100644 --- a/tests/e2e/api/versions/test_v1.py +++ b/tests/e2e/api/versions/test_v1.py @@ -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 diff --git a/tests/unit/db/models/test_party_donation.py b/tests/unit/db/models/test_party_donation.py index 8cef60ee..45c2dc80 100644 --- a/tests/unit/db/models/test_party_donation.py +++ b/tests/unit/db/models/test_party_donation.py @@ -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)