Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Rename test function names since can_finalize_draft_order is renamed to validate_draft_order
Unknownf077b2100265
diff --git a/tests/api/test_order.py b/tests/api/test_order.pyindex b4861ec45f..208b2b3f01 100644--- a/tests/api/test_order.py+++ b/tests/api/test_order.py@@ -599,12 +599,12 @@ def test_can_finalize_order_no_order_lines(assert content['data']['order']['canFinalize'] is False-def test_can_finalize_draft_order(order_with_lines):+def test_validate_draft_order(order_with_lines):# should not raise any errorsvalidate_draft_order(order_with_lines)-def test_can_finalize_draft_order_wrong_shipping(order_with_lines):+def test_validate_draft_order_wrong_shipping(order_with_lines):order = order_with_linesshipping_zone = order.shipping_method.shipping_zoneshipping_zone.countries = ['DE']@@ -616,14 +616,14 @@ def test_can_finalize_draft_order_wrong_shipping(order_with_lines):assert e.value.error_dict['shipping'][0].message == msg-def test_can_finalize_draft_order_no_order_lines(order):+def test_validate_draft_order_no_order_lines(order):with pytest.raises(ValidationError) as e:validate_draft_order(order)msg = 'Could not create order without any products.'assert e.value.error_dict['lines'][0].message == msg-def test_can_finalize_draft_order_non_existing_variant(order_with_lines):+def test_validate_draft_order_non_existing_variant(order_with_lines):order = order_with_linesline = order.lines.first()variant = line.variant