@@ -125,9 +125,14 @@ def test_logout(client):
125125 400 ,
126126 ), # tests with upper case, but email already exists
127127 (" mergin@mergin.com " , "#pwd123" , 400 ), # invalid password
128- ("verylonglonglonglonglonglonglongemail@example.com" , "#pwd1234" , 201 ),
128+ (
129+ "verylonglonglonglonglonglonglongemail@lutra-consulting.co.uk" ,
130+ "#pwd1234" ,
131+ 201 ,
132+ ), # long local part, second-level domain, dash in domain
129133 ("us.er@mergin.com" , "#pwd1234" , 201 ), # dot is allowed
130134 ("us er@mergin.com" , "#pwd1234" , 400 ), # space is disallowed
135+ ("test@gmaiñ.com" , "#pwd1234" , 400 ), # non-ASCII character in the domain
131136]
132137
133138
@@ -936,15 +941,16 @@ def test_server_usage(client):
936941 ("日人日本人" , True ), # non-ascii character
937942 ("usér" , True ), # non-ascii character
938943 ("user\\ " , False ), # disallowed character
939- ("user\260 " , True ), # non-ascii character (°)
944+ ("user\260 " , False ), # not letter character (°)
940945 ("user|" , False ), # vertical bar
941946 ("us er" , False ), # space in the middle
942947 ("us,er" , False ), # comma
943948 ("us—er" , False ), # dash
944- ("us' er" , False ), # apostrophe
949+ ("us´ er" , False ), # acute accent
945950 (" user" , True ), # starting with space (will be stripped)
946951 ("us.er" , True ), # dot in the middle
947952 (".user" , False ), # starting with dot
953+ ("us-er" , True ), # hyphen
948954]
949955
950956
0 commit comments