From c5f851d3540ee06908991a17d88044f4e3827194 Mon Sep 17 00:00:00 2001 From: edescalona Date: Fri, 6 Dec 2024 11:08:57 -0500 Subject: [PATCH] [FIX] Ttests --- .../tests/test_controller_form.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/website_recaptcha_v2_form/tests/test_controller_form.py b/website_recaptcha_v2_form/tests/test_controller_form.py index 8745b2aa23..ab6070fc33 100644 --- a/website_recaptcha_v2_form/tests/test_controller_form.py +++ b/website_recaptcha_v2_form/tests/test_controller_form.py @@ -40,11 +40,18 @@ def test_recaptcha_enabled_reset_password_login_signup(self): "csrf_token": http.Request.csrf_token(self), "g-recaptcha-response": "recaptcha_invalid", } - response = self.test_url_open(url="/web/login", data=data) - self.assertEqual(response.status_code, 200) response_reset = self.test_url_open(url="/web/reset_password", data=data) self.assertEqual(response_reset.status_code, 200) response_signup = self.test_url_open(url="/web/signup", data=data) self.assertEqual(response_signup.status_code, 200) + + data.update( + { + "login": "test_user", + "password": "Password!1", + } + ) + response = self.test_url_open(url="/web/login", data=data) + self.assertEqual(response.status_code, 200)