From a0ce270cf58aff660c2774aaf3f77710f86a8576 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 18 Oct 2016 13:51:34 +0100 Subject: [PATCH] Update email domain list. --- config.py | 5 ++--- tests/app/main/test_validators.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/config.py b/config.py index 1163cd298..a1d8f2670 100644 --- a/config.py +++ b/config.py @@ -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): diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index c14c66184..dd69bf842 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -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():