Skip to content

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

Move api checkout tests

fowczrek20370b012c49
diff --git a/saleor/graphql/checkout/tests/__init__.py b/saleor/graphql/checkout/tests/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/tests/api/test_checkout.py b/saleor/graphql/checkout/tests/test_checkout.py
similarity index 99%
rename from tests/api/test_checkout.py
rename to saleor/graphql/checkout/tests/test_checkout.py
index bc8b0a0e50..35297b3c50 100644
--- a/tests/api/test_checkout.py
+++ b/saleor/graphql/checkout/tests/test_checkout.py
@@ -28,9 +28,8 @@ from saleor.payment import TransactionKind
from saleor.payment.interface import GatewayResponse
from saleor.plugins.manager import PluginsManager
from saleor.warehouse.models import Stock
-
-from ..utils import get_available_quantity_for_stock
-from .utils import assert_no_permission, get_graphql_content
+from tests.api.utils import assert_no_permission, get_graphql_content
+from tests.utils import get_available_quantity_for_stock
@pytest.fixture(autouse=True)
diff --git a/tests/api/test_checkout_digital.py b/saleor/graphql/checkout/tests/test_checkout_digital.py
similarity index 100%
rename from tests/api/test_checkout_digital.py
rename to saleor/graphql/checkout/tests/test_checkout_digital.py
diff --git a/tests/api/test_checkout_promo_codes.py b/saleor/graphql/checkout/tests/test_checkout_promo_codes.py
similarity index 99%
rename from tests/api/test_checkout_promo_codes.py
rename to saleor/graphql/checkout/tests/test_checkout_promo_codes.py
index 55a0d97f8c..b658486f02 100644
--- a/tests/api/test_checkout_promo_codes.py
+++ b/saleor/graphql/checkout/tests/test_checkout_promo_codes.py
@@ -7,11 +7,12 @@ from prices import Money
from saleor.checkout import calculations
from saleor.checkout.utils import add_voucher_to_checkout
from saleor.discount import DiscountInfo, VoucherType
-from tests.api.test_checkout import (
+from tests.api.utils import get_graphql_content
+
+from .test_checkout import (
MUTATION_CHECKOUT_LINES_DELETE,
MUTATION_CHECKOUT_SHIPPING_ADDRESS_UPDATE,
)
-from tests.api.utils import get_graphql_content
def test_checkout_lines_delete_with_not_applicable_voucher(