Use the validation error message from the InvalidEmailError

This commit is contained in:
Rebecca Law
2016-03-08 17:46:00 +00:00
parent 29a7289d1e
commit 114cfa6b17
4 changed files with 9 additions and 9 deletions

View File

@@ -488,4 +488,4 @@ def test_send_user_reset_password_should_return_400_when_data_is_not_email_addre
headers=[('Content-Type', 'application/json'), auth_header])
assert resp.status_code == 400
assert json.loads(resp.get_data(as_text=True))['message'] == {'email': ['Invalid email']}
assert json.loads(resp.get_data(as_text=True))['message'] == {'email': ['Not a valid email address']}