From 54a666e8e98f771b00543b305e88d27fcef4ff54 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 2 Mar 2017 10:18:19 +0000 Subject: [PATCH] Add Scottish Enterprise to list of gov domains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Scottish Enterprise is Scotland's main economic development agency > and a non-departmental public body of the Scottish Government. – https://www.scottish-enterprise.com/about-us For some reason their email domain is `scotent.co.uk` (but it redirects to www.scottish-enterprise.com on the web for the some reason ¯\_(ツ)_/¯) --- app/config.py | 1 + tests/app/main/test_validators.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app/config.py b/app/config.py index 7bad978ef..57f0ecffd 100644 --- a/app/config.py +++ b/app/config.py @@ -76,6 +76,7 @@ class Config(object): r"ucds\.email", r"naturalengland\.org\.uk", r"hmcts\.net", + r"scotent\.co\.uk", ] diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index e25a207cd..1b9979098 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -88,6 +88,7 @@ def _gen_mock_field(x): 'test@ucds.email', 'test@naturalengland.org.uk', 'test@hmcts.net', + 'test@scotent.co.uk', ]) def test_valid_list_of_white_list_email_domains( client,