From 01d92fdbb37826352f3ab92b9140bae7246fc144 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 10 Aug 2017 12:47:56 +0100 Subject: [PATCH] Add British Library to email domain whitelist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I think that British Library can use Notify. Need to double check though. > BL is an executive non-departmental public body, sponsored by the > Department for Digital, Culture, Media & Sport. > https://www.bl.uk/ — https://www.gov.uk/government/organisations/british-library --- app/config.py | 1 + tests/app/main/test_validators.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 6664ea46b..d05be8647 100644 --- a/app/config.py +++ b/app/config.py @@ -85,6 +85,7 @@ class Config(object): r"assembly\.wales", r"cjsm\.net", r"cqc\.org\.uk", + r"bl\.uk", ] LOGO_UPLOAD_BUCKET_NAME = 'public-logos-local' diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index e9bf96db2..5f17ec2d3 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -93,6 +93,7 @@ def _gen_mock_field(x): 'test@cjsm.net', 'test@cqc.org.uk', 'test@digital.cqc.org.uk', + 'test@bl.uk', ]) def test_valid_list_of_white_list_email_domains( client, @@ -126,7 +127,8 @@ def test_valid_list_of_white_list_email_domains( 'test@ukpolice.uk', 'test@police.uk.uk', 'test@police.test.uk', - 'test@ucds.com' + 'test@ucds.com', + 'test@123bl.uk', ]) def test_invalid_list_of_white_list_email_domains( client,