Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Move get_graphql_content to tests/api/utils

Pacu2e12f099f0f8d
diff --git a/tests/api/test_account.py b/tests/api/test_account.py
index 004af3028a..1e07d7293b 100644
--- a/tests/api/test_account.py
+++ b/tests/api/test_account.py
@@ -11,7 +11,7 @@ from django.shortcuts import reverse
from saleor.account.models import Address, User
from saleor.graphql.account.mutations import (
SetPassword, StaffDelete, StaffUpdate)
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from .utils import assert_no_permission, convert_dict_keys_to_camel_case
diff --git a/tests/api/test_attributes.py b/tests/api/test_attributes.py
index df3c6c50f4..f5580a3ae3 100644
--- a/tests/api/test_attributes.py
+++ b/tests/api/test_attributes.py
@@ -3,7 +3,7 @@ import json
import graphene
import pytest
from django.shortcuts import reverse
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.product.models import (
Category, Attribute, AttributeValue)
from saleor.graphql.product.utils import attributes_to_hstore
diff --git a/tests/api/test_category.py b/tests/api/test_category.py
index fdc1e51c0c..f7e91a4d38 100644
--- a/tests/api/test_category.py
+++ b/tests/api/test_category.py
@@ -4,7 +4,7 @@ import graphene
import pytest
from django.shortcuts import reverse
from django.template.defaultfilters import slugify
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.product.models import Category
diff --git a/tests/api/test_core.py b/tests/api/test_core.py
index 11c63fd49c..bb2e2c935a 100644
--- a/tests/api/test_core.py
+++ b/tests/api/test_core.py
@@ -3,7 +3,7 @@ from unittest.mock import Mock
import graphene
from django.shortcuts import reverse
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.graphql.core.utils import clean_seo_fields, snake_to_camel_case
from saleor.graphql.product import types as product_types
diff --git a/tests/api/test_discount.py b/tests/api/test_discount.py
index e09e500758..ef3ed38321 100644
--- a/tests/api/test_discount.py
+++ b/tests/api/test_discount.py
@@ -3,7 +3,7 @@ import json
import graphene
import pytest
from django.shortcuts import reverse
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.discount import (
DiscountValueType, VoucherType)
diff --git a/tests/api/test_fulfillment.py b/tests/api/test_fulfillment.py
index 7e7c9b0187..03986cadf5 100644
--- a/tests/api/test_fulfillment.py
+++ b/tests/api/test_fulfillment.py
@@ -3,7 +3,7 @@ import json
import graphene
import pytest
from django.shortcuts import reverse
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.order import OrderEvents, OrderEventsEmails
from saleor.order.models import FulfillmentStatus
diff --git a/tests/api/test_graphql.py b/tests/api/test_graphql.py
index b6cd3990d1..2478c38db1 100644
--- a/tests/api/test_graphql.py
+++ b/tests/api/test_graphql.py
@@ -10,7 +10,7 @@ from django.shortcuts import reverse
from django.test import RequestFactory
from graphql_jwt.shortcuts import get_token
from graphql_relay import to_global_id
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from saleor.graphql.middleware import jwt_middleware
from saleor.graphql.product.types import Product
diff --git a/tests/api/test_menu.py b/tests/api/test_menu.py
index bcbc2fc982..7484f8c8b8 100644
--- a/tests/api/test_menu.py
+++ b/tests/api/test_menu.py
@@ -5,7 +5,7 @@ import pytest
import graphene
from django.shortcuts import reverse
from saleor.graphql.menu.mutations import NavigationType
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from .utils import assert_no_permission
diff --git a/tests/api/test_order.py b/tests/api/test_order.py
index 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, Payment
from saleor.shipping.models import ShippingMethod
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from .utils import assert_no_permission
diff --git a/tests/api/test_page.py b/tests/api/test_page.py
index 6c729452f6..49369969cb 100644
--- a/tests/api/test_page.py
+++ b/tests/api/test_page.py
@@ -5,7 +5,7 @@ import pytest
import graphene
from django.shortcuts import reverse
from saleor.page.models import Page
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
def test_page_query(user_api_client, page):
diff --git a/tests/api/test_product.py b/tests/api/test_product.py
index 83fa4afc6f..ec52e07f09 100644
--- a/tests/api/test_product.py
+++ b/tests/api/test_product.py
@@ -11,8 +11,8 @@ from prices import Money
from saleor.graphql.product.utils import update_variants_names
from 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_ext
from .utils import assert_no_permission, get_multipart_request_body
diff --git a/tests/api/test_shipping_method.py b/tests/api/test_shipping_method.py
index 68fdfd78d7..3a408e2f9a 100644
--- a/tests/api/test_shipping_method.py
+++ b/tests/api/test_shipping_method.py
@@ -5,7 +5,7 @@ import pytest
import graphene
from django.shortcuts import reverse
from saleor.graphql.shipping.types import ShippingMethodTypeEnum
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/test_shop.py b/tests/api/test_shop.py
index 3d4fc13c52..b38095a0fd 100644
--- a/tests/api/test_shop.py
+++ b/tests/api/test_shop.py
@@ -6,7 +6,7 @@ from django.shortcuts import reverse
from django_countries import countries
from saleor.core.permissions import MODELS_PERMISSIONS
from saleor.site.models import Site
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
from .utils import assert_no_permission
diff --git a/tests/api/test_variant.py b/tests/api/test_variant.py
index 1372f73e18..2e855d858c 100644
--- a/tests/api/test_variant.py
+++ b/tests/api/test_variant.py
@@ -3,7 +3,7 @@ import json
import graphene
import pytest
from django.shortcuts import reverse
-from tests.utils import get_graphql_content
+from tests.api.utils import get_graphql_content
def test_fetch_variant(admin_api_client, product):