trivial: fix typo in error message

This commit is contained in:
Frédéric Péters 2021-03-04 21:28:59 +01:00
parent 4484b7cea8
commit 902c862c6f
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ class RegistrationForm(HoneypotForm):
validate_name = RegexValidator(
r'[0-9_!¡?÷?¿/\\+=@#$%ˆ&*(){}|~<>;:[\]]',
message=_('Special caracters are not allowed.'),
message=_('Special characters are not allowed.'),
inverse_match=True,
)

View File

@ -849,14 +849,14 @@ def test_registration_name_validation(app, db, mailoutbox):
resp.form.set('first_name', '01/01/1871')
resp.form.set('last_name', 'Doe')
resp = resp.form.submit()
assert 'Special caracters are not allowed' in resp.text
assert 'Special characters are not allowed' in resp.text
resp.form.set('password1', 'T0==toto')
resp.form.set('password2', 'T0==toto')
resp.form.set('first_name', 'John')
resp.form.set('last_name', 'a(a')
resp = resp.form.submit()
assert 'Special caracters are not allowed' in resp.text
assert 'Special characters are not allowed' in resp.text
resp.form.set('password1', 'T0==toto')
resp.form.set('password2', 'T0==toto')