Improve username error messages and duplicate messages

This commit is contained in:
rubenwardy
2022-06-05 00:54:09 +01:00
parent adaf44bc2b
commit 0a89849157
6 changed files with 11 additions and 10 deletions

View File

@@ -53,7 +53,7 @@ def test_register(client):
rv = register(client, "££££!!!", "Test User", "password", "test@example.com", "13")
assert b"invalid-feedback" in rv.data
assert b"Only a-zA-Z0-9._ allowed</p>" in rv.data
assert b"Only alphabetic letters (A-Za-z), numbers (0-9), underscores (_), minuses (-), and periods (.) allowed</p>" in rv.data
def test_register_flow(client):