From f3966e6185955baed25db1c7de834ee15e21e18b Mon Sep 17 00:00:00 2001 From: Edilio Daciel Escalona Almira Date: Mon, 2 Dec 2024 19:11:25 -0500 Subject: [PATCH] [IMP] Tests --- website_recaptcha_v2_login/tests/test_recaptcha.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website_recaptcha_v2_login/tests/test_recaptcha.py b/website_recaptcha_v2_login/tests/test_recaptcha.py index 311d8b956f..9059537668 100644 --- a/website_recaptcha_v2_login/tests/test_recaptcha.py +++ b/website_recaptcha_v2_login/tests/test_recaptcha.py @@ -1,6 +1,7 @@ -from odoo.tests import common from unittest import mock +from odoo.tests import common + imp_requests = "odoo.addons.website_recaptcha_v2.models.website.requests" @@ -20,8 +21,7 @@ def setUpClass(cls): @mock.patch(imp_requests) def test_captcha_valid(self, requests_mock): requests_mock.post().json.return_value = {"success": True} - result, error_msg = self.website.is_recaptcha_v2_valid( + result = self.website.valid_recaptcha( {"g-recaptcha-response": "dummy_response"} ) self.assertTrue(result) - self.assertEqual(error_msg, "")