Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move api product tests
fowczrek527ddfad58aa
diff --git a/saleor/graphql/product/tests/__init__.py b/saleor/graphql/product/tests/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/tests/api/test_attributes.py b/saleor/graphql/product/tests/test_attributes.pysimilarity index 100%rename from tests/api/test_attributes.pyrename to saleor/graphql/product/tests/test_attributes.pydiff --git a/tests/api/test_category.py b/saleor/graphql/product/tests/test_category.pysimilarity index 100%rename from tests/api/test_category.pyrename to saleor/graphql/product/tests/test_category.pydiff --git a/tests/api/test_collection.py b/saleor/graphql/product/tests/test_collection.pysimilarity index 99%rename from tests/api/test_collection.pyrename to saleor/graphql/product/tests/test_collection.pyindex 0abe6f87bd..a89feec66b 100644--- a/tests/api/test_collection.py+++ b/saleor/graphql/product/tests/test_collection.py@@ -8,10 +8,9 @@ from graphql_relay import to_global_idfrom saleor.product.error_codes import ProductErrorCodefrom saleor.product.models import Collection+from tests.api.utils import get_graphql_content, get_multipart_request_bodyfrom tests.utils import create_image, create_pdf_file_with_image_ext-from .utils import get_graphql_content, get_multipart_request_body-QUERY_COLLECTION = """query ($id: ID, $slug: String){collection(diff --git a/tests/api/test_digital_content.py b/saleor/graphql/product/tests/test_digital_content.pysimilarity index 99%rename from tests/api/test_digital_content.pyrename to saleor/graphql/product/tests/test_digital_content.pyindex 0f67ade10d..0aa9f130e6 100644--- a/tests/api/test_digital_content.py+++ b/saleor/graphql/product/tests/test_digital_content.py@@ -2,11 +2,9 @@ import graphenefrom saleor.product.error_codes import ProductErrorCodefrom saleor.product.models import DigitalContent, ProductVariant-from tests.api.utils import get_graphql_content+from tests.api.utils import get_graphql_content, get_multipart_request_bodyfrom tests.utils import create_image-from .utils import get_multipart_request_body-def test_fetch_all_digital_contents(staff_api_client, variant, digital_content, permission_manage_productsdiff --git a/tests/api/test_product.py b/saleor/graphql/product/tests/test_product.pysimilarity index 99%rename from tests/api/test_product.pyrename to saleor/graphql/product/tests/test_product.pyindex 9de22bb9c9..ec4fd5cb24 100644--- a/tests/api/test_product.py+++ b/saleor/graphql/product/tests/test_product.py@@ -31,11 +31,13 @@ from saleor.product.models import (from saleor.product.tasks import update_variants_namesfrom saleor.product.utils.attributes import associate_attribute_values_to_instancefrom saleor.warehouse.models import Allocation, Stock, Warehouse-from tests.api.utils import get_graphql_content+from tests.api.utils import (+ assert_no_permission,+ get_graphql_content,+ get_multipart_request_body,+)from tests.utils import create_image, create_pdf_file_with_image_ext-from .utils import assert_no_permission, get_multipart_request_body-@pytest.fixturedef query_products_with_filter():diff --git a/tests/api/test_product_minimal_variant_price.py b/saleor/graphql/product/tests/test_product_minimal_variant_price.pysimilarity index 100%rename from tests/api/test_product_minimal_variant_price.pyrename to saleor/graphql/product/tests/test_product_minimal_variant_price.pydiff --git a/tests/api/test_product_sorting.py b/saleor/graphql/product/tests/test_product_sorting.pysimilarity index 98%rename from tests/api/test_product_sorting.pyrename to saleor/graphql/product/tests/test_product_sorting.pyindex 9108a0460b..8b13b9f0d2 100644--- a/tests/api/test_product_sorting.py+++ b/saleor/graphql/product/tests/test_product_sorting.py@@ -1,6 +1,6 @@import graphene-from ..api.utils import get_graphql_content+from tests.api.utils import get_graphql_contentGET_SORTED_PRODUCTS_COLLECTION_QUERY = """query CollectionProducts($id: ID!) {diff --git a/tests/api/test_product_sorting_attributes.py b/saleor/graphql/product/tests/test_product_sorting_attributes.pysimilarity index 99%rename from tests/api/test_product_sorting_attributes.pyrename to saleor/graphql/product/tests/test_product_sorting_attributes.pyindex 945fce1cfa..946c7f9d72 100644--- a/tests/api/test_product_sorting_attributes.py+++ b/saleor/graphql/product/tests/test_product_sorting_attributes.py@@ -6,8 +6,7 @@ import pytestfrom saleor.core.taxes import zero_moneyfrom saleor.product import models as product_modelsfrom saleor.product.utils.attributes import associate_attribute_values_to_instance--from ..api.utils import get_graphql_content+from tests.api.utils import get_graphql_contentHERE = os.path.realpath(os.path.dirname(__file__))diff --git a/tests/api/test_variant.py b/saleor/graphql/product/tests/test_variant.pysimilarity index 100%rename from tests/api/test_variant.pyrename to saleor/graphql/product/tests/test_variant.pydiff --git a/tests/api/test_variant_pricing.py b/saleor/graphql/product/tests/test_variant_pricing.pysimilarity index 100%rename from tests/api/test_variant_pricing.pyrename to saleor/graphql/product/tests/test_variant_pricing.py