Skip to content

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

Fix tests for removed transaction kind arg in call_gateway

Unknownd1915c35b036
diff --git a/tests/test_payment.py b/tests/test_payment.py
index 7ad39cf328..515ea72dfe 100644
--- a/tests/test_payment.py
+++ b/tests/test_payment.py
@@ -849,7 +849,7 @@ def test_call_gateway_invalid_response(
with pytest.raises(PaymentError) as e:
call_gateway(
- operation_type=OperationType.AUTH, transaction_kind='auth',
+ operation_type=OperationType.AUTH,
payment=payment_dummy, payment_token='token')
assert str(e.value) == 'Gateway response validation failed'
@@ -864,7 +864,7 @@ def test_call_gateway_function_not_implemented(
with pytest.raises(PaymentError) as e:
call_gateway(
- operation_type=OperationType.AUTH, transaction_kind='auth',
+ operation_type=OperationType.AUTH,
payment=payment_dummy, payment_token='token')
assert str(e.value) == 'Gateway doesn\'t implement AUTH operation'
@@ -878,6 +878,6 @@ def test_call_gateway_generic_error(
with pytest.raises(PaymentError) as e:
call_gateway(
- operation_type=OperationType.AUTH, transaction_kind='auth',
+ operation_type=OperationType.AUTH,
payment=payment_dummy, payment_token='token')
assert str(e.value) == 'Gateway encountered an error'