Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 5ea2129

Browse files
committed
Built a test to reflect new textcha format
1 parent 7930ee8 commit 5ea2129

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_user_login_and_registration.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,10 @@ def test_703_test_captcha_questions(client):
195195
"""
196196

197197
QUESTION = "Can you foo in Python?"
198-
ANSWER = "Yes you can"
199-
CaptchaQuestion.objects.create(question=QUESTION, answer=ANSWER)
198+
ANSWER = "(Yes|yeah|Definitely|CERTAINLY)"
199+
CaptchaQuestion.objects.create(
200+
question=QUESTION, answer=ANSWER
201+
)
200202
Email.objects.create(code="verify-account")
201203

202204
sign_up_url = reverse("accounts:signup_step_1_create_account")
@@ -246,7 +248,7 @@ def test_703_test_captcha_questions(client):
246248
"password1": "password",
247249
"password2": "password",
248250
"captcha_question": QUESTION,
249-
"captcha_answer": ANSWER,
251+
"captcha_answer": "YEAH",
250252
"i_accept_privacy_policy": True,
251253
},
252254
)

0 commit comments

Comments
 (0)