Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor import in checkout tests
fowczreke92bd480145b
diff --git a/saleor/checkout/tests/test_cart.py b/saleor/checkout/tests/test_cart.pyindex 658d95f143..1be797746f 100644--- a/saleor/checkout/tests/test_cart.py+++ b/saleor/checkout/tests/test_cart.py@@ -4,10 +4,10 @@ import pytestfrom measurement.measures import Weightfrom prices import Money, TaxedMoney-from saleor.checkout import calculations, utils-from saleor.checkout.models import Checkout-from saleor.checkout.utils import add_variant_to_checkout-from saleor.product.models import Category+from ...product.models import Category+from .. import calculations, utils+from ..models import Checkout+from ..utils import add_variant_to_checkout@pytest.fixture()diff --git a/saleor/checkout/tests/test_checkout.py b/saleor/checkout/tests/test_checkout.pyindex 4ab9e7991a..a32bbb2d5c 100644--- a/saleor/checkout/tests/test_checkout.py+++ b/saleor/checkout/tests/test_checkout.py@@ -9,12 +9,21 @@ from django_countries.fields import Countryfrom freezegun import freeze_timefrom prices import Money, TaxedMoney-from saleor.account import CustomerEvents-from saleor.account.models import Address, CustomerEvent, User-from saleor.account.utils import store_user_address-from saleor.checkout import AddressType, calculations-from saleor.checkout.models import Checkout-from saleor.checkout.utils import (+from ...account import CustomerEvents+from ...account.models import Address, CustomerEvent, User+from ...account.utils import store_user_address+from ...core.exceptions import InsufficientStock+from ...core.taxes import zero_money, zero_taxed_money+from ...discount import DiscountValueType, VoucherType+from ...discount.models import NotApplicable, Voucher+from ...order import OrderEvents, OrderEventsEmails+from ...order.models import OrderEvent+from ...plugins.manager import get_plugins_manager+from ...shipping.models import ShippingZone+from ...tests.utils import flush_post_commit_hooks+from .. import AddressType, calculations+from ..models import Checkout+from ..utils import (add_variant_to_checkout,add_voucher_to_checkout,change_billing_address_in_checkout,@@ -28,15 +37,6 @@ from saleor.checkout.utils import (recalculate_checkout_discount,remove_voucher_from_checkout,)-from saleor.core.exceptions import InsufficientStock-from saleor.core.taxes import zero_money, zero_taxed_money-from saleor.discount import DiscountValueType, VoucherType-from saleor.discount.models import NotApplicable, Voucher-from saleor.order import OrderEvents, OrderEventsEmails-from saleor.order.models import OrderEvent-from saleor.plugins.manager import get_plugins_manager-from saleor.shipping.models import ShippingZone-from saleor.tests.utils import flush_post_commit_hooksdef test_is_valid_shipping_method(checkout_with_item, address, shipping_zone):