From c78e968e0a4116cb5d7406593f331ce7d9436583 Mon Sep 17 00:00:00 2001 From: kovalch Date: Tue, 2 Jul 2024 12:12:48 +0200 Subject: [PATCH] fix: Change to str for g_recaptcha_response --- ckanext/subscribe/tests/test_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/subscribe/tests/test_action.py b/ckanext/subscribe/tests/test_action.py index 9ad687c..f2d8e08 100644 --- a/ckanext/subscribe/tests/test_action.py +++ b/ckanext/subscribe/tests/test_action.py @@ -293,7 +293,7 @@ def test_verify_recaptcha_failure(self, mock_verify_recaptcha, send_request_emai {}, email="bob@example.com", dataset_id=dataset["id"], - g_recaptcha_response=None, + g_recaptcha_response="wrong_recaptcha", ) except ValidationError as e: # Asserting that the error is raised with the correct message