Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix fetch_checkout_lines usage in tests (#9074)
Marcin Gębalabdd78044d542
diff --git a/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py b/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.pyindex bf17ac6b92..e8e66a38f9 100644--- a/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py+++ b/saleor/payment/gateways/adyen/tests/webhooks/test_handle_notifications.py@@ -213,7 +213,7 @@ def test_handle_authorization_for_checkout_partial_payment(payment = payment_adyen_for_checkoutmanager = get_plugins_manager()- lines = fetch_checkout_lines(checkout)+ lines, _ = fetch_checkout_lines(checkout)checkout_info = fetch_checkout_info(checkout, lines, [], manager)total = calculations.calculate_checkout_total_with_gift_cards(manager, checkout_info, lines, address@@ -1457,7 +1457,7 @@ def test_handle_order_closed_success_true(payment = payment_adyen_for_checkoutmanager = get_plugins_manager()- lines = fetch_checkout_lines(checkout)+ lines, _ = fetch_checkout_lines(checkout)checkout_info = fetch_checkout_info(checkout, lines, [], manager)total = calculations.calculate_checkout_total_with_gift_cards(manager, checkout_info, lines, address@@ -1508,7 +1508,7 @@ def test_handle_order_closed_with_adyen_partial_payments_success_true(payment = payment_adyen_for_checkoutmanager = get_plugins_manager()- lines = fetch_checkout_lines(checkout)+ lines, _ = fetch_checkout_lines(checkout)checkout_info = fetch_checkout_info(checkout, lines, [], manager)total = calculations.calculate_checkout_total_with_gift_cards(manager, checkout_info, lines, address@@ -1593,7 +1593,7 @@ def test_handle_order_closed_with_adyen_partial_payments_success_true_without_ampayment = payment_adyen_for_checkoutmanager = get_plugins_manager()- lines = fetch_checkout_lines(checkout)+ lines, _ = fetch_checkout_lines(checkout)checkout_info = fetch_checkout_info(checkout, lines, [], manager)total = calculations.calculate_checkout_total_with_gift_cards(manager, checkout_info, lines, address@@ -1688,7 +1688,7 @@ def test_order_closed_with_adyen_partial_payments_unable_to_create_order(payment = payment_adyen_for_checkoutmanager = get_plugins_manager()- lines = fetch_checkout_lines(checkout)+ lines, _ = fetch_checkout_lines(checkout)checkout_info = fetch_checkout_info(checkout, lines, [], manager)total = calculations.calculate_checkout_total_with_gift_cards(manager, checkout_info, lines, address