force CGU/EULA approval on account creation

This commit is contained in:
imperosol
2026-09-18 11:27:46 +02:00
parent a264a9e26a
commit 2f95db211a
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": ""}, "Ce champ est obligatoire."),
],
)
def test_register_user_form_fail(