trivial: fix typo in error message
This commit is contained in:
parent
4484b7cea8
commit
902c862c6f
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue