Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix failing tests (#9041)
Przemysław Łada7f72a1afa5a1
diff --git a/saleor/giftcard/tests/test_tasks.py b/saleor/giftcard/tests/test_tasks.pyindex fe06db1377..f18edbfc29 100644--- a/saleor/giftcard/tests/test_tasks.py+++ b/saleor/giftcard/tests/test_tasks.py@@ -1,6 +1,7 @@import datetimeimport pytest+from django.utils import timezonefrom .. import GiftCardEventsfrom ..models import GiftCard@@ -43,8 +44,8 @@ def test_deactivate_expired_cards_task(@pytest.mark.parametrize("expiry_date",[- datetime.date.today(),- datetime.date.today() + datetime.timedelta(days=1),+ timezone.now().date(),+ timezone.now().date() + datetime.timedelta(days=1),],)def test_deactivate_expired_cards_task_cards_not_deactivated(diff --git a/saleor/giftcard/tests/test_utils.py b/saleor/giftcard/tests/test_utils.pyindex d08cdd19a3..869c8ee615 100644--- a/saleor/giftcard/tests/test_utils.py+++ b/saleor/giftcard/tests/test_utils.py@@ -745,7 +745,7 @@ def test_is_gift_card_expired_true(gift_card):@pytest.mark.parametrize(- "expiry_date", [date.today(), date.today() + timedelta(days=1)]+ "expiry_date", [timezone.now().date(), timezone.now().date() + timedelta(days=1)])def test_is_gift_card_expired_false(expiry_date, gift_card):# given