Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change DEFAULT_COUNTRY in tests
Michał Sipa5568db0bc699
diff --git a/saleor/graphql/checkout/tests/test_checkout.py b/saleor/graphql/checkout/tests/test_checkout.pyindex d975d6c19b..9998e23b23 100644--- a/saleor/graphql/checkout/tests/test_checkout.py+++ b/saleor/graphql/checkout/tests/test_checkout.py@@ -2,6 +2,7 @@ import uuidfrom decimal import Decimalfrom unittest import mockfrom unittest.mock import ANY, patch+from django.test import override_settingsimport grapheneimport pytest@@ -527,6 +528,7 @@ def test_checkout_create_check_lines_quantity_multiple_warehouse(assert data["errors"][0]["field"] == "quantity"+@override_settings(DEFAULT_COUNTRY="DE")def test_checkout_create_sets_country_from_shipping_address_country(user_api_client,variant_with_many_stocks_different_shipping_zones,@@ -555,6 +557,7 @@ def test_checkout_create_sets_country_from_shipping_address_country(assert checkout.country == "US"+@override_settings(DEFAULT_COUNTRY="DE")def test_checkout_create_check_lines_quantity_different_shipping_zone_insufficient_stocks( # NOQAuser_api_client,variant_with_many_stocks_different_shipping_zones,@@ -1345,6 +1348,7 @@ def test_checkout_shipping_address_update("saleor.graphql.checkout.mutations.update_checkout_shipping_method_if_invalid",wraps=update_checkout_shipping_method_if_invalid,)+@override_settings(DEFAULT_COUNTRY="DE")def test_checkout_shipping_address_update_changes_checkout_country(mocked_update_shipping_method,user_api_client,@@ -1393,6 +1397,7 @@ def test_checkout_shipping_address_update_changes_checkout_country("saleor.graphql.checkout.mutations.update_checkout_shipping_method_if_invalid",wraps=update_checkout_shipping_method_if_invalid,)+@override_settings(DEFAULT_COUNTRY="DE")def test_checkout_shipping_address_update_insufficient_stocks(mocked_update_shipping_method,user_api_client,