mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Update error message for invalid email addresses
It has a trailing full stop since: https://github.com/alphagov/notifications-utils/pull/76
This commit is contained in:
@@ -85,7 +85,7 @@ def test_create_invited_user_invalid_email(notify_api, sample_service, mocker):
|
||||
assert response.status_code == 400
|
||||
json_resp = json.loads(response.get_data(as_text=True))
|
||||
assert json_resp['result'] == 'error'
|
||||
assert json_resp['message'] == {'email_address': ['Not a valid email address']}
|
||||
assert json_resp['message'] == {'email_address': ['Not a valid email address.']}
|
||||
app.celery.tasks.send_email.apply_async.assert_not_called()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user