Skip to content

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

Move fixtures

fowczrek1c274cb00d44
diff --git a/conftest.py b/conftest.py
index 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.py
index 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_settings
from saleor.demo.views import EXAMPLE_QUERY
from saleor.graphql.product.types import Product
-from tests.api.fixtures import API_PATH
+from saleor.graphql.tests.fixtures import API_PATH
from tests.api.utils import _get_graphql_content_from_response, get_graphql_content
diff --git a/saleor/graphql/tests/__init__.py b/saleor/graphql/tests/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/api/fixtures.py b/saleor/graphql/tests/fixtures.py
similarity index 98%
rename from tests/api/fixtures.py
rename to saleor/graphql/tests/fixtures.py
index 41de78a898..b8f04c4753 100644
--- a/tests/api/fixtures.py
+++ b/saleor/graphql/tests/fixtures.py
@@ -12,9 +12,8 @@ from graphql_jwt.shortcuts import get_token
from saleor.account.models import User
from saleor.app.models import App
from 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_hooks
API_PATH = reverse("api")
diff --git a/tests/fixtures.py b/saleor/tests/fixtures.py
similarity index 100%
rename from tests/fixtures.py
rename to saleor/tests/fixtures.py