Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add one more test
Patryk Zawadzki6792a9edd2d6
diff --git a/tests/test_cart.py b/tests/test_cart.pyindex 334ab13e27..010aaf9456 100644--- a/tests/test_cart.py+++ b/tests/test_cart.py@@ -130,6 +130,14 @@ def test_contains_unavailable_variants():assert not utils.contains_unavailable_variants(cart)+def test_remove_unavailable_variants(cart, product_in_stock):+ variant = product_in_stock.variants.get()+ cart.add(variant, 1)+ variant.stock.update(quantity=0)+ utils.remove_unavailable_variants(cart)+ assert len(cart) == 0++def test_check_product_availability_and_warn(monkeypatch, cart, product_in_stock):variant = product_in_stock.variants.get()