Skip to content

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

Fix test on Python 3.5

Pacu28e6c1636bb7a
diff --git a/tests/test_payment.py b/tests/test_payment.py
index f436d640f2..0573e62a5d 100644
--- a/tests/test_payment.py
+++ b/tests/test_payment.py
@@ -160,7 +160,7 @@ def test_gateway_get_client_token(settings):
module = gateway['module']
with patch('%s.get_client_token' % module) as transaction_token_mock:
gateway_get_client_token(gateway_name)
- transaction_token_mock.assert_called_once_with()
+ assert transaction_token_mock.called
def test_gateway_get_client_token_not_allowed_gateway(settings):