Merge pull request #1046 from alphagov/you-make-me-feel-like-a-natural-england

Add Natural England to government email domains list
This commit is contained in:
Chris Hill-Scott
2016-12-07 17:14:12 +01:00
committed by GitHub
2 changed files with 4 additions and 10 deletions

View File

@@ -61,14 +61,9 @@ class Config(object):
r"nhs\.uk",
r"nhs\.net",
r"police\.uk",
r"kainos\.com",
r"salesforce\.com",
r"bitzesty\.com",
r"dclgdatamart\.co\.uk",
r"valtech\.co\.uk",
r"cgi\.com",
r"capita\.co\.uk",
r"ucds\.email"
r"ucds\.email",
r"naturalengland\.org\.uk",
]

View File

@@ -79,9 +79,8 @@ def _gen_mock_field(x):
'test@police.uk',
'test@gov.police.uk',
'test@GOV.PoliCe.uk',
'test@valtech.co.uk',
'test@cgi.com',
'test@ucds.email'
'test@ucds.email',
'test@naturalengland.org.uk',
])
def test_valid_list_of_white_list_email_domains(app_, email):
with app_.test_request_context():