Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor import in api tests
fowczreka96782c3e7b3
diff --git a/saleor/graphql/checkout/tests/test_checkout.py b/saleor/graphql/checkout/tests/test_checkout.pyindex 8f75c27c3d..d330329c19 100644--- a/saleor/graphql/checkout/tests/test_checkout.py+++ b/saleor/graphql/checkout/tests/test_checkout.py@@ -21,12 +21,12 @@ from ....payment.interface import GatewayResponsefrom ....plugins.manager import PluginsManagerfrom ....warehouse.models import Stockfrom ....warehouse.tests.utils import get_available_quantity_for_stock-from ...checkout.mutations import (+from ...tests.utils import assert_no_permission, get_graphql_content+from ..mutations import (clean_shipping_method,update_checkout_shipping_method_if_invalid,)-from ...checkout.utils import clean_checkout_payment, clean_checkout_shipping-from ...tests.utils import assert_no_permission, get_graphql_content+from ..utils import clean_checkout_payment, clean_checkout_shipping@pytest.fixture(autouse=True)diff --git a/saleor/graphql/discount/tests/test_discount.py b/saleor/graphql/discount/tests/test_discount.pyindex 1e00ba1614..90d2b7fbb4 100644--- a/saleor/graphql/discount/tests/test_discount.py+++ b/saleor/graphql/discount/tests/test_discount.py@@ -9,8 +9,8 @@ from django_countries import countriesfrom ....discount import DiscountValueType, VoucherTypefrom ....discount.error_codes import DiscountErrorCodefrom ....discount.models import Sale, Voucher-from ...discount.enums import DiscountValueTypeEnum, VoucherTypeEnumfrom ...tests.utils import get_graphql_content+from ..enums import DiscountValueTypeEnum, VoucherTypeEnum@pytest.fixturediff --git a/saleor/graphql/menu/tests/test_bulk_delete.py b/saleor/graphql/menu/tests/test_bulk_delete.pyindex f93f541d4a..87367f1481 100644--- a/saleor/graphql/menu/tests/test_bulk_delete.py+++ b/saleor/graphql/menu/tests/test_bulk_delete.py@@ -2,8 +2,8 @@ import grapheneimport pytestfrom ....menu.models import Menu, MenuItem-from ...menu.tests.utils import menu_item_to_jsonfrom ...tests.utils import get_graphql_content+from .utils import menu_item_to_json@pytest.fixturediff --git a/saleor/graphql/order/tests/test_order.py b/saleor/graphql/order/tests/test_order.pyindex b37690d34a..6f1cef38d1 100644--- a/saleor/graphql/order/tests/test_order.py+++ b/saleor/graphql/order/tests/test_order.py@@ -28,9 +28,9 @@ from ...order.mutations.orders import (clean_refund_payment,try_payment_action,)-from ...order.utils import validate_draft_orderfrom ...payment.types import PaymentChargeStatusEnumfrom ...tests.utils import assert_no_permission, get_graphql_content+from ..utils import validate_draft_order@pytest.fixturediff --git a/saleor/graphql/payment/tests/test_payment.py b/saleor/graphql/payment/tests/test_payment.pyindex 173adefcc4..00d22b56ce 100644--- a/saleor/graphql/payment/tests/test_payment.py+++ b/saleor/graphql/payment/tests/test_payment.py@@ -9,8 +9,8 @@ from ....payment.error_codes import PaymentErrorCodefrom ....payment.interface import CreditCardInfo, CustomerSource, TokenConfigfrom ....payment.models import ChargeStatus, Payment, TransactionKindfrom ....payment.utils import fetch_customer_id, store_customer_id-from ...payment.enums import OrderAction, PaymentChargeStatusEnumfrom ...tests.utils import assert_no_permission, get_graphql_content+from ..enums import OrderAction, PaymentChargeStatusEnumVOID_QUERY = """mutation PaymentVoid($paymentId: ID!) {