Stop referring to central gov in error messages

This commit is contained in:
Chris Hill-Scott
2017-08-10 13:51:46 +01:00
parent 9e3d60ee58
commit a10e76a9c2
3 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ class ValidGovEmail:
def __call__(self, form, field):
from flask import url_for
message = (
'Enter a central government email address.'
'Enter a government email address.'
' If you think you should have access'
' <a href="{}">contact us</a>').format(url_for('main.support'))
if not is_gov_user(field.data.lower()):

View File

@@ -28,7 +28,7 @@ def test_valid_email_not_in_valid_domains(
):
form = RegisterUserForm(email_address="test@test.com", mobile_number='441231231231')
assert not form.validate()
assert "Enter a central government email address" in form.errors['email_address'][0]
assert "Enter a government email address" in form.errors['email_address'][0]
def test_valid_email_in_valid_domains(

View File

@@ -96,7 +96,7 @@ def test_should_return_200_when_email_is_not_gov_uk(
'password': 'validPassword!'})
assert response.status_code == 200
assert 'Enter a central government email address' in response.get_data(as_text=True)
assert 'Enter a government email address' in response.get_data(as_text=True)
def test_should_add_user_details_to_session(