Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove deprecated testcase
Artur Smęt4a3115e1a8f3
diff --git a/saleor/cart/__init__.py b/saleor/cart/__init__.pyindex 33d7b4f515..9f5b9f7506 100755--- a/saleor/cart/__init__.py+++ b/saleor/cart/__init__.py@@ -108,8 +108,5 @@ class SessionCart(cart.Cart):}return cart_data- def get_line(self, product, data=None):- return super(SessionCart, self).get_line(product, data)-def create_line(self, product, quantity, data):return SessionCartLine(product, quantity, data)\ No newline at end of filediff --git a/saleor/cart/tests.py b/saleor/cart/tests.pyindex 3dded50802..2ca78c5284 100755--- a/saleor/cart/tests.py+++ b/saleor/cart/tests.py@@ -156,35 +156,3 @@ class ReplaceCartLineFormSetTest(TestCase):product_quantity = cart.get_line(stock_product).quantityself.assertEqual(product_quantity, 5,'%s is the bad quantity value' % (product_quantity,))---class SessionCartTest(TestCase):- def setUp(self):- self.cart = SessionCart()- self.product_data = {- 'product_id': stock_product.product.pk,- 'variant_id': stock_product.pk,- 'unit_price': str(stock_product.get_price_per_item().gross)- }-- def test_add_product(self):- self.cart.add(stock_product, quantity=5)- product = self.cart.get_line(stock_product, data=self.product_data)- self.assertEqual(product.quantity, 5)-- def test_replace_product(self):- self.cart.add(stock_product, quantity=5)- # Replace- self.cart.add(stock_product, quantity=10, data=self.product_data,- replace=True)- product = self.cart.get_line(stock_product, data=self.product_data)- self.assertEqual(product.quantity, 10)-- def test_clear(self):- self.cart.add(stock_product, quantity=5)- self.cart.clear()- self.assertEqual(self.cart._state, [])-- def test_count(self):- self.cart.add(stock_product, quantity=5)- self.assertEqual(self.cart.count(), 5)