Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move fixtures
fowczrek1c274cb00d44
diff --git a/conftest.py b/conftest.pyindex fcf8641ba4..9773d9e716 100644--- a/conftest.py+++ b/conftest.py@@ -1,5 +1,5 @@pytest_plugins = [- "tests.fixtures",+ "saleor.tests.fixtures","saleor.plugins.tests.fixtures",- "tests.api.fixtures",+ "saleor.graphql.tests.fixtures",]diff --git a/saleor/graphql/core/tests/test_view.py b/saleor/graphql/core/tests/test_view.pyindex 71c5690aaf..40f3e625a4 100644--- a/saleor/graphql/core/tests/test_view.py+++ b/saleor/graphql/core/tests/test_view.py@@ -6,7 +6,7 @@ from django.test import override_settingsfrom saleor.demo.views import EXAMPLE_QUERYfrom saleor.graphql.product.types import Product-from tests.api.fixtures import API_PATH+from saleor.graphql.tests.fixtures import API_PATHfrom tests.api.utils import _get_graphql_content_from_response, get_graphql_contentdiff --git a/saleor/graphql/tests/__init__.py b/saleor/graphql/tests/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/tests/api/fixtures.py b/saleor/graphql/tests/fixtures.pysimilarity index 98%rename from tests/api/fixtures.pyrename to saleor/graphql/tests/fixtures.pyindex 41de78a898..b8f04c4753 100644--- a/tests/api/fixtures.py+++ b/saleor/graphql/tests/fixtures.py@@ -12,9 +12,8 @@ from graphql_jwt.shortcuts import get_tokenfrom saleor.account.models import Userfrom saleor.app.models import Appfrom saleor.graphql.views import handled_errors_logger, unhandled_errors_logger--from ..utils import flush_post_commit_hooks-from .utils import assert_no_permission+from tests.api.utils import assert_no_permission+from tests.utils import flush_post_commit_hooksAPI_PATH = reverse("api")diff --git a/tests/fixtures.py b/saleor/tests/fixtures.pysimilarity index 100%rename from tests/fixtures.pyrename to saleor/tests/fixtures.py