Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update tests since billing address for checkout is required now
Unknown7edd6e4a2c7a
diff --git a/tests/api/test_checkout.py b/tests/api/test_checkout.pyindex 7abb5640e1..e3787a9839 100644--- a/tests/api/test_checkout.py+++ b/tests/api/test_checkout.py@@ -802,6 +802,7 @@ def test_checkout_complete(checkout = cart_with_itemcheckout.shipping_address = addresscheckout.shipping_method = shipping_method+ checkout.billing_address = addresscheckout.save()checkout_line = checkout.lines.first()@@ -867,6 +868,7 @@ def test_checkout_complete_no_payment(checkout = cart_with_itemcheckout.shipping_address = addresscheckout.shipping_method = shipping_method+ checkout.billing_address = addresscheckout.save()checkout_id = graphene.Node.to_global_id('Checkout', checkout.pk)variables = {'checkoutId': checkout_id}@@ -890,6 +892,7 @@ def test_checkout_complete_insufficient_stock(cart_line.save()checkout.shipping_address = addresscheckout.shipping_method = shipping_method+ checkout.billing_address = addresscheckout.save()total = checkout.get_total()payment = payment_dummy@@ -1093,6 +1096,7 @@ def test_ready_to_place_order(checkout = cart_with_itemcheckout.shipping_address = addresscheckout.shipping_method = shipping_method+ checkout.billing_address = addresscheckout.save()total = checkout.get_total()payment = payment_dummy@@ -1143,6 +1147,7 @@ def test_ready_to_place_order_no_payment(checkout = cart_with_itemcheckout.shipping_address = addresscheckout.shipping_method = shipping_method+ checkout.billing_address = addresscheckout.save()ready, error = ready_to_place_order(checkout, None, None)assert not ready