force CGU/EULA approval on account creation

This commit is contained in:
imperosol
2026-09-21 13:28:09 +02:00
parent f2f0d21c6e
commit 3cc533044a
8 changed files with 75 additions and 55 deletions
+2
View File
@@ -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(