From a1147ace33ced39341bdfa7bf0e3fc8bdbc49fcd Mon Sep 17 00:00:00 2001 From: Mika Hietanen Date: Thu, 12 Dec 2024 08:46:11 +0200 Subject: [PATCH] Update permit automatic expiration test Explicitly remove talpa_order_id to prevent additional Talpa order validation from the test. --- parking_permits/tests/test_cron.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parking_permits/tests/test_cron.py b/parking_permits/tests/test_cron.py index 8585d5da..678be313 100644 --- a/parking_permits/tests/test_cron.py +++ b/parking_permits/tests/test_cron.py @@ -233,7 +233,9 @@ def test_automatic_expiration_permits_with_permit_vehicle_changed(self): product = ProductFactory( unit_price=unit_price, ) - order = OrderFactory(customer=self.customer, status=OrderStatus.CONFIRMED) + order = OrderFactory( + customer=self.customer, status=OrderStatus.CONFIRMED, talpa_order_id=None + ) OrderItemFactory( order=order, permit=permit_1,