Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move api account tests
fowczrekbd4dbb768a93
diff --git a/conftest.py b/conftest.pyindex 262b94e4bf..fcf8641ba4 100644--- a/conftest.py+++ b/conftest.py@@ -1 +1,5 @@-pytest_plugins = ["tests.fixtures", "saleor.plugins.tests.fixtures"]+pytest_plugins = [+ "tests.fixtures",+ "saleor.plugins.tests.fixtures",+ "tests.api.fixtures",+]diff --git a/saleor/graphql/account/tests/__init__.py b/saleor/graphql/account/tests/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/tests/api/test_account.py b/saleor/graphql/account/tests/test_account.pysimilarity index 99%rename from tests/api/test_account.pyrename to saleor/graphql/account/tests/test_account.pyindex 09c79f8b7d..722cb4e3f8 100644--- a/tests/api/test_account.py+++ b/saleor/graphql/account/tests/test_account.py@@ -31,14 +31,13 @@ from saleor.graphql.account.mutations.staff import ()from saleor.graphql.core.utils import str_to_enumfrom saleor.order.models import FulfillmentStatus, Order-from tests.api.utils import get_graphql_content-from tests.utils import create_image--from .utils import (+from tests.api.utils import (assert_no_permission,convert_dict_keys_to_camel_case,+ get_graphql_content,get_multipart_request_body,)+from tests.utils import create_image@pytest.fixturediff --git a/tests/api/test_account_depreceated_service_account.py b/saleor/graphql/account/tests/test_account_depreceated_service_account.pysimilarity index 99%rename from tests/api/test_account_depreceated_service_account.pyrename to saleor/graphql/account/tests/test_account_depreceated_service_account.pyindex 694804e39d..640416c203 100644--- a/tests/api/test_account_depreceated_service_account.py+++ b/saleor/graphql/account/tests/test_account_depreceated_service_account.py@@ -6,8 +6,7 @@ from freezegun import freeze_timefrom saleor.account.error_codes import AccountErrorCodefrom saleor.app.models import App, AppTokenfrom saleor.graphql.core.enums import PermissionEnum--from .utils import assert_no_permission, get_graphql_content+from tests.api.utils import assert_no_permission, get_graphql_content@pytest.fixturediff --git a/tests/api/test_account_events.py b/saleor/graphql/account/tests/test_account_events.pysimilarity index 99%rename from tests/api/test_account_events.pyrename to saleor/graphql/account/tests/test_account_events.pyindex 405f47b30b..9d5a68ca47 100644--- a/tests/api/test_account_events.py+++ b/saleor/graphql/account/tests/test_account_events.py@@ -3,8 +3,7 @@ from django.db import modelsfrom saleor.account import events as account_eventsfrom saleor.account.models import User--from .utils import get_graphql_content+from tests.api.utils import get_graphql_contentQUERY_CUSTOMER_EVENTS = """query customerEvents($customerId: ID!) {diff --git a/tests/api/test_account_meta.py b/saleor/graphql/account/tests/test_account_meta.pysimilarity index 100%rename from tests/api/test_account_meta.pyrename to saleor/graphql/account/tests/test_account_meta.pydiff --git a/tests/api/test_account_permission_group.py b/saleor/graphql/account/tests/test_account_permission_group.pysimilarity index 99%rename from tests/api/test_account_permission_group.pyrename to saleor/graphql/account/tests/test_account_permission_group.pyindex c0477447d8..734506057a 100644--- a/tests/api/test_account_permission_group.py+++ b/saleor/graphql/account/tests/test_account_permission_group.py@@ -5,8 +5,7 @@ from django.contrib.auth.models import Groupfrom saleor.account.error_codes import PermissionGroupErrorCodefrom saleor.account.models import Userfrom saleor.core.permissions import AccountPermissions, AppPermission, OrderPermissions--from .utils import assert_no_permission, get_graphql_content+from tests.api.utils import assert_no_permission, get_graphql_contentPERMISSION_GROUP_CREATE_MUTATION = """mutation PermissionGroupCreate(diff --git a/tests/api/test_account_utils.py b/saleor/graphql/account/tests/test_account_utils.pysimilarity index 100%rename from tests/api/test_account_utils.pyrename to saleor/graphql/account/tests/test_account_utils.pydiff --git a/tests/api/conftest.py b/tests/api/fixtures.pysimilarity index 100%rename from tests/api/conftest.pyrename to tests/api/fixtures.pydiff --git a/tests/api/test_view.py b/tests/api/test_view.pyindex 40da294e46..98ef270d19 100644--- a/tests/api/test_view.py+++ b/tests/api/test_view.py@@ -7,7 +7,7 @@ from django.test import override_settingsfrom saleor.demo.views import EXAMPLE_QUERYfrom saleor.graphql.product.types import Product-from .conftest import API_PATH+from .fixtures import API_PATHfrom .utils import _get_graphql_content_from_response, get_graphql_content