Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move get_graphql_content to tests/api/utils
Pacu2e12f099f0f8d
diff --git a/tests/api/test_account.py b/tests/api/test_account.pyindex 004af3028a..1e07d7293b 100644--- a/tests/api/test_account.py+++ b/tests/api/test_account.py@@ -11,7 +11,7 @@ from django.shortcuts import reversefrom saleor.account.models import Address, Userfrom saleor.graphql.account.mutations import (SetPassword, StaffDelete, StaffUpdate)-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom .utils import assert_no_permission, convert_dict_keys_to_camel_casediff --git a/tests/api/test_attributes.py b/tests/api/test_attributes.pyindex df3c6c50f4..f5580a3ae3 100644--- a/tests/api/test_attributes.py+++ b/tests/api/test_attributes.py@@ -3,7 +3,7 @@ import jsonimport grapheneimport pytestfrom django.shortcuts import reverse-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.product.models import (Category, Attribute, AttributeValue)from saleor.graphql.product.utils import attributes_to_hstorediff --git a/tests/api/test_category.py b/tests/api/test_category.pyindex fdc1e51c0c..f7e91a4d38 100644--- a/tests/api/test_category.py+++ b/tests/api/test_category.py@@ -4,7 +4,7 @@ import grapheneimport pytestfrom django.shortcuts import reversefrom django.template.defaultfilters import slugify-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.product.models import Categorydiff --git a/tests/api/test_core.py b/tests/api/test_core.pyindex 11c63fd49c..bb2e2c935a 100644--- a/tests/api/test_core.py+++ b/tests/api/test_core.py@@ -3,7 +3,7 @@ from unittest.mock import Mockimport graphenefrom django.shortcuts import reverse-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.graphql.core.utils import clean_seo_fields, snake_to_camel_casefrom saleor.graphql.product import types as product_typesdiff --git a/tests/api/test_discount.py b/tests/api/test_discount.pyindex e09e500758..ef3ed38321 100644--- a/tests/api/test_discount.py+++ b/tests/api/test_discount.py@@ -3,7 +3,7 @@ import jsonimport grapheneimport pytestfrom django.shortcuts import reverse-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.discount import (DiscountValueType, VoucherType)diff --git a/tests/api/test_fulfillment.py b/tests/api/test_fulfillment.pyindex 7e7c9b0187..03986cadf5 100644--- a/tests/api/test_fulfillment.py+++ b/tests/api/test_fulfillment.py@@ -3,7 +3,7 @@ import jsonimport grapheneimport pytestfrom django.shortcuts import reverse-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.order import OrderEvents, OrderEventsEmailsfrom saleor.order.models import FulfillmentStatusdiff --git a/tests/api/test_graphql.py b/tests/api/test_graphql.pyindex b6cd3990d1..2478c38db1 100644--- a/tests/api/test_graphql.py+++ b/tests/api/test_graphql.py@@ -10,7 +10,7 @@ from django.shortcuts import reversefrom django.test import RequestFactoryfrom graphql_jwt.shortcuts import get_tokenfrom graphql_relay import to_global_id-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom saleor.graphql.middleware import jwt_middlewarefrom saleor.graphql.product.types import Productdiff --git a/tests/api/test_menu.py b/tests/api/test_menu.pyindex bcbc2fc982..7484f8c8b8 100644--- a/tests/api/test_menu.py+++ b/tests/api/test_menu.py@@ -5,7 +5,7 @@ import pytestimport graphenefrom django.shortcuts import reversefrom saleor.graphql.menu.mutations import NavigationType-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom .utils import assert_no_permissiondiff --git a/tests/api/test_order.py b/tests/api/test_order.pyindex 337409fd1d..fc3e96a159 100644--- a/tests/api/test_order.py+++ b/tests/api/test_order.py@@ -18,7 +18,7 @@ from saleor.order import (CustomPaymentChoices, OrderEvents, OrderEventsEmails, OrderStatus)from saleor.order.models import Order, OrderEvent, Paymentfrom saleor.shipping.models import ShippingMethod-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom .utils import assert_no_permissiondiff --git a/tests/api/test_page.py b/tests/api/test_page.pyindex 6c729452f6..49369969cb 100644--- a/tests/api/test_page.py+++ b/tests/api/test_page.py@@ -5,7 +5,7 @@ import pytestimport graphenefrom django.shortcuts import reversefrom saleor.page.models import Page-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentdef test_page_query(user_api_client, page):diff --git a/tests/api/test_product.py b/tests/api/test_product.pyindex 83fa4afc6f..ec52e07f09 100644--- a/tests/api/test_product.py+++ b/tests/api/test_product.py@@ -11,8 +11,8 @@ from prices import Moneyfrom saleor.graphql.product.utils import update_variants_namesfrom saleor.product.models import (Category, Collection, Product, ProductImage, ProductType, ProductVariant)-from tests.utils import (- create_image, create_pdf_file_with_image_ext, get_graphql_content)+from tests.api.utils import get_graphql_content+from tests.utils import create_image, create_pdf_file_with_image_extfrom .utils import assert_no_permission, get_multipart_request_bodydiff --git a/tests/api/test_shipping_method.py b/tests/api/test_shipping_method.pyindex 68fdfd78d7..3a408e2f9a 100644--- a/tests/api/test_shipping_method.py+++ b/tests/api/test_shipping_method.py@@ -5,7 +5,7 @@ import pytestimport graphenefrom django.shortcuts import reversefrom saleor.graphql.shipping.types import ShippingMethodTypeEnum-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_content@pytest.fixturediff --git a/tests/api/test_shop.py b/tests/api/test_shop.pyindex 3d4fc13c52..b38095a0fd 100644--- a/tests/api/test_shop.py+++ b/tests/api/test_shop.py@@ -6,7 +6,7 @@ from django.shortcuts import reversefrom django_countries import countriesfrom saleor.core.permissions import MODELS_PERMISSIONSfrom saleor.site.models import Site-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentfrom .utils import assert_no_permissiondiff --git a/tests/api/test_variant.py b/tests/api/test_variant.pyindex 1372f73e18..2e855d858c 100644--- a/tests/api/test_variant.py+++ b/tests/api/test_variant.py@@ -3,7 +3,7 @@ import jsonimport grapheneimport pytestfrom django.shortcuts import reverse-from tests.utils import get_graphql_content+from tests.api.utils import get_graphql_contentdef test_fetch_variant(admin_api_client, product):