Skip to content

Commit

Permalink
test(signup): check special chars are accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig committed Oct 2, 2024
1 parent a85dc26 commit ca23a09
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions users/tests/SignupTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,20 @@ def test_signup_form_with_different_passwords(self) -> None:
field="password2",
errors="Les mots de passe ne sont pas identiques",
)

def test_allowed_characters_are_accepted(self) -> None:
fields_to_test = {
"first_name": "John-Doe",
"last_name": "John Do'e",
"function": "Test",
}

data = {**valid_payload, **fields_to_test}

response = self.client.post(path=form_url, data=data)
self.assertFormError(
response=response,
form="form",
field=None,
errors=[],
)

0 comments on commit ca23a09

Please sign in to comment.