Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix payment tests
Jakub Draganek8ee40d5404b6
diff --git a/tests/test_payment.py b/tests/test_payment.pyindex 4017453346..d559384090 100644--- a/tests/test_payment.py+++ b/tests/test_payment.py@@ -13,7 +13,7 @@ from saleor.payment import (TransactionKind,get_payment_gateway,)-from saleor.payment.interface import GatewayConfig, GatewayResponse+from saleor.payment.interface import GatewayConfig, GatewayResponse, TokenConfigfrom saleor.payment.models import Paymentfrom saleor.payment.utils import (ALLOWED_GATEWAY_KINDS,@@ -218,7 +218,8 @@ def test_gateway_get_client_token(get_payment_gateway_mock, gateway_config):token = gateway_get_client_token("some-gateway")assert token == "client-token"- get_client_token_mock.assert_called_once_with(config=gateway_config)+ get_client_token_mock.assert_called_once_with(+ config=gateway_config, token_config=TokenConfig())def test_gateway_get_client_token_not_allowed_gateway(settings):