Skip to content

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

Update assertion in tests

Michał Sipae05c3ac7c96f
diff --git a/saleor/plugins/webhook/tests/test_webhook.py b/saleor/plugins/webhook/tests/test_webhook.py
index 6c87482dc4..17e5f577ee 100644
--- a/saleor/plugins/webhook/tests/test_webhook.py
+++ b/saleor/plugins/webhook/tests/test_webhook.py
@@ -41,7 +41,7 @@ def test_trigger_webhooks_for_event(
}
mock_request.assert_called_once_with(
- webhook.target_url, data=expected_data, headers=expected_headers, timeout=10
+ webhook.target_url, json=expected_data, headers=expected_headers, timeout=10
)
@@ -128,7 +128,7 @@ def test_trigger_webhooks_for_event_with_secret_key(
}
mock_request.assert_called_once_with(
- webhook.target_url, data=expected_data, headers=expected_headers, timeout=10
+ webhook.target_url, json=expected_data, headers=expected_headers, timeout=10
)