mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-18 10:14:24 +00:00
force CGU/EULA approval on account creation
This commit is contained in:
@@ -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": ""}, "Ce champ est obligatoire."),
|
||||
],
|
||||
)
|
||||
def test_register_user_form_fail(
|
||||
|
||||
Reference in New Issue
Block a user