Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix review remarks
fowczarek35f28bf532cc
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.pyindex e3db9b6030..35b24a6809 100644--- a/saleor/core/utils/random_data.py+++ b/saleor/core/utils/random_data.py@@ -989,7 +989,7 @@ def create_vouchers():yield "Value voucher already exists"voucher, created = Voucher.objects.get_or_create(- code="WithoutName",+ code="VCO9KV98LC",defaults={"type": VoucherType.ENTIRE_ORDER,"discount_value_type": DiscountValueType.PERCENTAGE,diff --git a/tests/test_core.py b/tests/test_core.pyindex eb98885a64..13b4f2fbe3 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -160,7 +160,7 @@ def test_create_vouchers(db):assert Voucher.objects.all().count() == 0for _ in random_data.create_vouchers():pass- assert Voucher.objects.all().count() == 2+ assert Voucher.objects.all().count() == 3def test_create_gift_card(db):