Merge pull request #991 from alphagov/add-ucds-domain

Update email domain list.
This commit is contained in:
Rebecca Law
2016-10-18 15:54:51 +01:00
committed by GitHub
2 changed files with 5 additions and 6 deletions

View File

@@ -59,10 +59,9 @@ class Config(object):
"bitzesty\.com",
"dclgdatamart\.co\.uk",
"valtech\.co\.uk",
"gofreerange\.com",
"cgi\.com",
"unboxed\.com",
"capita\.co\.uk"]
"capita\.co\.uk",
"ucds.email"]
class Development(Config):

View File

@@ -80,9 +80,8 @@ def _gen_mock_field(x):
'test@gov.police.uk',
'test@GOV.PoliCe.uk',
'test@valtech.co.uk',
'test@gofreerange.com',
'test@cgi.com',
'test@unboxed.com'
'test@ucds.email'
])
def test_valid_list_of_white_list_email_domains(app_, email):
with app_.test_request_context():
@@ -113,7 +112,8 @@ def test_valid_list_of_white_list_email_domains(app_, email):
'test@nhs.test.net',
'test@ukpolice.uk',
'test@police.uk.uk',
'test@police.test.uk'
'test@police.test.uk',
'test@ucds.com'
])
def test_invalid_list_of_white_list_email_domains(app_, email):
with app_.test_request_context():