Skip to content

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

Move api pagination tests

fowczrek035b3ff55ec9
diff --git a/tests/api/pagination/test_account.py b/saleor/graphql/account/tests/test_pagination.py
similarity index 99%
rename from tests/api/pagination/test_account.py
rename to saleor/graphql/account/tests/test_pagination.py
index 9620cfaef0..29a0ccfc4a 100644
--- a/tests/api/pagination/test_account.py
+++ b/saleor/graphql/account/tests/test_pagination.py
@@ -3,8 +3,7 @@ from django.contrib.auth import models as auth_models
from saleor.account.models import User
from saleor.order.models import Order
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture()
diff --git a/tests/api/pagination/test_account_service_account.py b/saleor/graphql/account/tests/test_pagination_deprecated_service_account.py
similarity index 98%
rename from tests/api/pagination/test_account_service_account.py
rename to saleor/graphql/account/tests/test_pagination_deprecated_service_account.py
index e52dc6cb81..651278946b 100644
--- a/tests/api/pagination/test_account_service_account.py
+++ b/saleor/graphql/account/tests/test_pagination_deprecated_service_account.py
@@ -1,8 +1,7 @@
import pytest
from saleor.app.models import App
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture()
diff --git a/tests/api/pagination/test_app.py b/saleor/graphql/app/tests/test_pagination.py
similarity index 98%
rename from tests/api/pagination/test_app.py
rename to saleor/graphql/app/tests/test_pagination.py
index 254f565792..d173c65b62 100644
--- a/tests/api/pagination/test_app.py
+++ b/saleor/graphql/app/tests/test_pagination.py
@@ -1,8 +1,7 @@
import pytest
from saleor.app.models import App
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture()
diff --git a/tests/api/pagination/test_discount.py b/saleor/graphql/discount/tests/test_pagination.py
similarity index 99%
rename from tests/api/pagination/test_discount.py
rename to saleor/graphql/discount/tests/test_pagination.py
index 07fe1ce4f6..5909c19029 100644
--- a/tests/api/pagination/test_discount.py
+++ b/saleor/graphql/discount/tests/test_pagination.py
@@ -6,8 +6,7 @@ from freezegun import freeze_time
from saleor.discount import DiscountValueType, VoucherType
from saleor.discount.models import Sale, Voucher
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/pagination/test_menu.py b/saleor/graphql/menu/tests/test_pagination.py
similarity index 99%
rename from tests/api/pagination/test_menu.py
rename to saleor/graphql/menu/tests/test_pagination.py
index 0be205e824..3ad2b746fd 100644
--- a/tests/api/pagination/test_menu.py
+++ b/saleor/graphql/menu/tests/test_pagination.py
@@ -1,8 +1,7 @@
import pytest
from saleor.menu.models import Menu, MenuItem
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/pagination/test_order.py b/saleor/graphql/order/tests/test_pagination.py
similarity index 99%
rename from tests/api/pagination/test_order.py
rename to saleor/graphql/order/tests/test_pagination.py
index 00088c6d70..be45661831 100644
--- a/tests/api/pagination/test_order.py
+++ b/saleor/graphql/order/tests/test_pagination.py
@@ -8,8 +8,7 @@ from prices import Money, TaxedMoney
from saleor.order.models import Order, OrderStatus
from saleor.payment import ChargeStatus
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture()
diff --git a/tests/api/pagination/test_attribute.py b/saleor/graphql/product/tests/test_attribute_pagination.py
similarity index 99%
rename from tests/api/pagination/test_attribute.py
rename to saleor/graphql/product/tests/test_attribute_pagination.py
index 4fe1bc7943..c8666ac8a6 100644
--- a/tests/api/pagination/test_attribute.py
+++ b/saleor/graphql/product/tests/test_attribute_pagination.py
@@ -9,8 +9,7 @@ from saleor.product.models import (
Product,
ProductType,
)
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/pagination/test_product.py b/saleor/graphql/product/tests/test_product_pagination.py
similarity index 99%
rename from tests/api/pagination/test_product.py
rename to saleor/graphql/product/tests/test_product_pagination.py
index 29d2485d52..1ae592aced 100644
--- a/tests/api/pagination/test_product.py
+++ b/saleor/graphql/product/tests/test_product_pagination.py
@@ -13,8 +13,7 @@ from saleor.product.models import (
)
from saleor.product.utils.attributes import associate_attribute_values_to_instance
from saleor.warehouse.models import Stock
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/pagination/test_warehouse.py b/saleor/graphql/warehouse/tests/test_pagination.py
similarity index 98%
rename from tests/api/pagination/test_warehouse.py
rename to saleor/graphql/warehouse/tests/test_pagination.py
index c3e7033403..19ec9f1a74 100644
--- a/tests/api/pagination/test_warehouse.py
+++ b/saleor/graphql/warehouse/tests/test_pagination.py
@@ -2,8 +2,7 @@ import graphene
import pytest
from saleor.warehouse.models import Warehouse
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture
diff --git a/tests/api/pagination/test_webhook.py b/saleor/graphql/webhook/tests/test_pagination.py
similarity index 98%
rename from tests/api/pagination/test_webhook.py
rename to saleor/graphql/webhook/tests/test_pagination.py
index 1ce72fda13..976be738ae 100644
--- a/tests/api/pagination/test_webhook.py
+++ b/saleor/graphql/webhook/tests/test_pagination.py
@@ -2,8 +2,7 @@ import pytest
from saleor.app.models import App
from saleor.webhook.models import Webhook
-
-from ..utils import get_graphql_content
+from tests.api.utils import get_graphql_content
@pytest.fixture