Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix gateway confirm test
Jakub Draganek4c17d3cf2dc1
diff --git a/tests/gateway/test_gateway.py b/tests/gateway/test_gateway.pyindex 153b96f5e7..19ae09f8ef 100644--- a/tests/gateway/test_gateway.py+++ b/tests/gateway/test_gateway.py@@ -229,16 +229,16 @@ def test_void_payment(mock_payment_interface, payment_txn_preauth):assert transaction.gateway_response == RAW_RESPONSE-def test_confirm_payment(mock_payment_interface, payment_txn_preauth):- auth_transaction = payment_txn_preauth.transactions.get()+def test_confirm_payment(mock_payment_interface, payment_txn_to_confirm):+ auth_transaction = payment_txn_to_confirm.transactions.get()PAYMENT_DATA = create_payment_information(- payment=payment_txn_preauth,+ payment=payment_txn_to_confirm,payment_token=auth_transaction.token,amount=CONFIRM_AMOUNT,)mock_payment_interface.confirm_payment.return_value = CONFIRM_RESPONSE- transaction = gateway.confirm(payment=payment_txn_preauth)+ transaction = gateway.confirm(payment=payment_txn_to_confirm)mock_payment_interface.confirm_payment.assert_called_once_with(USED_GATEWAY, PAYMENT_DATA