Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add tests for check_variant_in_stock function
Mira Szewczyk0a8c9a4a35c1
diff --git a/tests/test_cart.py b/tests/test_cart.pyindex f2ae0d52fa..831439b45c 100644--- a/tests/test_cart.py+++ b/tests/test_cart.py@@ -8,8 +8,22 @@ from prices import Money, TaxedMoneyfrom saleor.checkout import calculations, utilsfrom saleor.checkout.context_processors import checkout_counterfrom saleor.checkout.models import Checkout+<<<<<<< HEADfrom saleor.checkout.utils import add_variant_to_checkout+=======+from saleor.checkout.utils import (+ add_variant_to_checkout,+ change_checkout_user,+ check_variant_in_stock,+ find_open_checkout_for_user,+ get_shipping_price_estimate,+)+from saleor.checkout.views import clear_checkout, update_checkout_line+from saleor.core.exceptions import InsufficientStock+from saleor.discount.models import Sale+>>>>>>> Add tests for check_variant_in_stock functionfrom saleor.product.models import Category+from saleor.stock.models import Stock@pytest.fixture()