@@ -73,7 +73,7 @@ def test_discount_code_update(old_client):
7373 assert discount_code .is_active is False
7474
7575
76- @pytest .mark .freeze_time ("2021-03-01" )
76+ @pytest .mark .freeze_time ("2021-03-01 12:34:56 " )
7777def test_discount_code_set_valid_from (old_client ):
7878 discount_code = old_client .discount_codes .create (
7979 models .DiscountCodeDraft (
@@ -95,7 +95,7 @@ def test_discount_code_set_valid_from(old_client):
9595 assert discount_code .valid_from == datetime .now ()
9696
9797
98- @pytest .mark .freeze_time ("2021-03-01" )
98+ @pytest .mark .freeze_time ("2021-03-01 12:34:56 " )
9999def test_discount_code_set_valid_until (old_client ):
100100 discount_code = old_client .discount_codes .create (
101101 models .DiscountCodeDraft (
@@ -115,7 +115,7 @@ def test_discount_code_set_valid_until(old_client):
115115 )
116116
117117 assert discount_code .version == 2
118- assert discount_code .valid_until == datetime .now (). isoformat ()
118+ assert discount_code .valid_until == datetime .now ()
119119
120120
121121def test_discount_code_change_cart_discounts (old_client ):
@@ -150,4 +150,4 @@ def test_discount_code_change_cart_discounts(old_client):
150150 )
151151
152152 assert discount_code .version == 2
153- assert discount_code .cart_discounts == cart_discount
153+ assert discount_code .cart_discounts == [ models . CartDiscountReference ( id = cart_discount . id )]
0 commit comments