From d46f1d63d426cd239dd82a71ea80a765ab8de0e9 Mon Sep 17 00:00:00 2001 From: Qin Date: Tue, 5 Nov 2024 10:48:05 -0800 Subject: [PATCH] fix unit test Signed-off-by: Qin --- legal-api/tests/unit/core/test_filing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legal-api/tests/unit/core/test_filing.py b/legal-api/tests/unit/core/test_filing.py index 43fd16b094..090979ab12 100644 --- a/legal-api/tests/unit/core/test_filing.py +++ b/legal-api/tests/unit/core/test_filing.py @@ -179,9 +179,9 @@ def test_set_effective(session): filing.storage.set_processed(legal_type) - # assert that the effective date is the payment date + # assert that the effective date is now, instead of the payment date assert filing._storage.effective_date - assert filing._storage.effective_date.replace(tzinfo=None) == payment_date.replace(tzinfo=None) + assert filing._storage.effective_date.replace(tzinfo=None) == now.replace(tzinfo=None) assert not filing.is_future_effective future_date = now + datedelta.DAY