Skip to content

Commit

Permalink
[FIX] Ttests
Browse files Browse the repository at this point in the history
  • Loading branch information
edescalona committed Dec 6, 2024
1 parent a566524 commit c5f851d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions website_recaptcha_v2_form/tests/test_controller_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c5f851d

Please sign in to comment.