Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests
Pacu23d5ac94edebf
diff --git a/tests/api/test_order.py b/tests/api/test_order.pyindex 2e966bedb2..bfaf3e99d4 100644--- a/tests/api/test_order.py+++ b/tests/api/test_order.py@@ -556,6 +556,8 @@ def test_draft_order_line_remove(order = draft_orderline = order.lines.first()variant = line.variant+ assert variant.quantity_allocated == 3+line_id = graphene.Node.to_global_id('OrderLine', line.id)variables = json.dumps({'id': line_id})@@ -574,7 +576,7 @@ def test_draft_order_line_remove(data = content['data']['draftOrderLineDelete']assert data['orderLine']['id'] == line_idvariant.refresh_from_db()- assert variant.quantity_allocated == 0+ assert variant.quantity_allocated == 3def test_require_draft_order_when_removing_lines(