Skip to content

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

Remove unused imports

Mira Szewczyke697d0c41ccb
diff --git a/saleor/checkout/utils.py b/saleor/checkout/utils.py
index 1265bc15c8..4e02a93065 100644
--- a/saleor/checkout/utils.py
+++ b/saleor/checkout/utils.py
@@ -40,10 +40,9 @@ from ..order.actions import order_created
from ..order.emails import send_order_confirmation, send_staff_order_confirmation
from ..order.models import Order, OrderLine
from ..shipping.models import ShippingMethod
-from ..stock.availability import check_stock_quantity, get_available_quantity
+from ..stock.availability import check_stock_quantity
from ..stock.management import allocate_stock
from . import AddressType
-
from .models import Checkout, CheckoutLine
if TYPE_CHECKING:
diff --git a/tests/test_cart.py b/tests/test_cart.py
index bc948a99f6..f2ae0d52fa 100644
--- a/tests/test_cart.py
+++ b/tests/test_cart.py
@@ -10,8 +10,6 @@ from saleor.checkout.context_processors import checkout_counter
from saleor.checkout.models import Checkout
from saleor.checkout.utils import add_variant_to_checkout
from saleor.product.models import Category
-from saleor.shipping.models import ShippingMethod
-from saleor.stock.models import Stock
@pytest.fixture()
diff --git a/tests/test_checkout.py b/tests/test_checkout.py
index c60b8b798e..21649a623c 100644
--- a/tests/test_checkout.py
+++ b/tests/test_checkout.py
@@ -34,7 +34,6 @@ from saleor.extensions.manager import get_extensions_manager
from saleor.order import OrderEvents, OrderEventsEmails
from saleor.order.models import OrderEvent
from saleor.shipping.models import ShippingZone
-from saleor.stock.models import Stock
def test_is_valid_shipping_method(checkout_with_item, address, shipping_zone):