Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use real country code
Mira Szewczyk991642279a15
diff --git a/tests/api/test_page.py b/tests/api/test_page.pyindex cb621216a0..66a5694737 100644--- a/tests/api/test_page.py+++ b/tests/api/test_page.py@@ -375,7 +375,6 @@ def test_query_pages_with_sort(response = staff_api_client.post_graphql(QUERY_PAGE_WITH_SORT, variables)content = get_graphql_content(response)pages = content["data"]["pages"]["edges"]- print(result_order)for order, page_name in enumerate(result_order):assert pages[order]["node"]["title"] == page_namediff --git a/tests/test_stock.py b/tests/test_stock.pyindex 1cdc4b74be..de43a989ff 100644--- a/tests/test_stock.py+++ b/tests/test_stock.py@@ -29,7 +29,11 @@ def test_stock_for_country(product):def test_stock_for_country_does_not_exists(product, warehouse):- fake_country_code = "OO"+ shipping_zone = warehouse.shipping_zones.first()+ shipping_zone.countries = [COUNTRY_CODE]+ shipping_zone.save(update_fields=["countries"])+ warehouse.refresh_from_db()+ fake_country_code = "PL"assert fake_country_code not in warehouse.countriesstock_qs = Stock.objects.for_country(fake_country_code)assert not stock_qs.exists()