Skip to content

Commit 1d5a8ed

Browse files
committed
Re-introduce test_invalid_email
Re-implements test removed by 49b9cba
1 parent 9d5d857 commit 1d5a8ed

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spkrepo/tests/test_frontend.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,16 @@ def test_post_generate_api_key_not_developer(self):
196196

197197

198198
class RegisterTestCase(BaseTestCase):
199+
def test_invalid_email(self):
200+
data = dict(
201+
username="test",
202+
email="test@localhost",
203+
password="password",
204+
password_confirm="password",
205+
)
206+
response = self.client.post(url_for_security("register"), data=data)
207+
self.assertIn("Invalid email address", response.data.decode())
208+
199209
def test_unique_user_username(self):
200210
data = dict(
201211
username="test",

0 commit comments

Comments
 (0)