Skip to content

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

Fix failing test after changes in kwargs used for webhook request (#12964)

Maciej Korycinski0e91962a4d8b
diff --git a/saleor/plugins/webhook/tests/test_tasks.py b/saleor/plugins/webhook/tests/test_tasks.py
index dec621347f..e98127083f 100644
--- a/saleor/plugins/webhook/tests/test_tasks.py
+++ b/saleor/plugins/webhook/tests/test_tasks.py
@@ -795,5 +795,9 @@ def test_handle_transaction_request_task_with_available_actions(
)
mocked_post_request.assert_called_once_with(
- target_url, data=payload.encode("utf-8"), headers=mock.ANY, timeout=mock.ANY
+ target_url,
+ allow_redirects=False,
+ data=payload.encode("utf-8"),
+ headers=mock.ANY,
+ timeout=mock.ANY,
)