Skip to content

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

Merge branch 'more-universal-cart-classes' into more-universal-cart-classes-rebased

Artur Smęt4aea172bd1a7
diff --cc saleor/cart/tests.py
index 62340f8bbf,ca53d85d8b..d83478dbc2
--- a/saleor/cart/tests.py
+++ b/saleor/cart/tests.py
@@@ -98,8 -110,8 +110,8 @@@ class BigShipCartFormTest(TestCase)
"""
Is BigShipCartForm works with not stocked product
"""
- cart = Cart()
+ cart = Cart(session_cart=MagicMock())
- self.post['quantity'] = 10000
+ self.post['quantity'] = 999
form = BigShipCartForm(self.post, cart=cart, product=digital_product)
self.assertTrue(form.is_valid(), 'Form doesn\'t valitate')
self.assertFalse(cart, 'Cart isn\'t empty')