mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-16 06:09:34 +00:00
force CGU/EULA approval on account creation
This commit is contained in:
1 parent
5b02bc2e3b
commit
4e3ed3212e
8 files changed
+75
-55
No files matched your search
@@ -55,6 +55,7 @@ class TestUserRegistration:
|
||||
"password2": "plop",
|
||||
"captcha_0": "dummy-value",
|
||||
"captcha_1": "PASSED",
|
||||
"cgu_approved": True,
|
||||
}
|
||||
|
||||
@pytest.fixture()
|
||||
@@ -92,6 +93,7 @@ class TestUserRegistration:
|
||||
({"first_name": ""}, "Ce champ est obligatoire."),
|
||||
({"last_name": ""}, "Ce champ est obligatoire."),
|
||||
({"captcha_1": "WRONG_CAPTCHA"}, "CAPTCHA invalide"),
|
||||
({"cgu_approved": ""}, "Vous devez approuver les conditions générales d'utilisation"),
|
||||
],
|
||||
)
|
||||
def test_register_user_form_fail(
|
||||
|
||||
Reference in new issue
Block a user