Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests
Patryk Zawadzki8209c265a7d5
diff --git a/tests/test_cart.py b/tests/test_cart.pyindex e68cb7ded2..cc180b2a6d 100644--- a/tests/test_cart.py+++ b/tests/test_cart.py@@ -301,8 +301,8 @@ def test_shipping_detection(cart, product_in_stock):def test_get_product_variants_and_prices():variant = Mock(product_id=1, id=1)- cart = MagicMock()- cart.__iter__.return_value = [+ cart = MagicMock(spec=Cart)+ cart.lines.all.return_value = [Mock(quantity=1, variant=variant,get_price_per_item=Mock(return_value=10))]variants = list(utils.get_product_variants_and_prices(cart, variant))