Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix tests on Python 3.5

Pacu223c7c1b4d13d
diff --git a/tests/test_payment.py b/tests/test_payment.py
index 3fc64896ee..53a2de8da0 100644
--- a/tests/test_payment.py
+++ b/tests/test_payment.py
@@ -146,7 +146,7 @@ def test_gateway_get_transaction_token(settings):
module = provider['module']
with patch('%s.get_transaction_token' % module) as transaction_token_mock:
gateway_get_transaction_token(provider_name)
- transaction_token_mock.assert_called_once()
+ transaction_token_mock.assert_called_once_with()
def test_gateway_get_transaction_token_not_existing_provider():
diff --git a/tests/test_payment_braintree.py b/tests/test_payment_braintree.py
index 2d72f148c1..5cf0af22f9 100644
--- a/tests/test_payment_braintree.py
+++ b/tests/test_payment_braintree.py
@@ -184,7 +184,7 @@ def test_get_transaction_token(mock_gateway, gateway_config):
mock_gateway.return_value = Mock(client_token=Mock(generate=mock_generate))
result = get_transaction_token(**gateway_config)
mock_gateway.assert_called_once_with(**gateway_config)
- mock_generate.assert_called_once()
+ mock_generate.assert_called_once_with()
assert result == transaction_token