From ef792d9d2a936edfa5f83fe3372535ffbd52075f Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Thu, 15 Sep 2016 09:39:44 +0100 Subject: [PATCH] Add a new domain for the email domain regex. --- config.py | 3 ++- tests/app/main/test_validators.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 8249f7f22..35019abf9 100644 --- a/config.py +++ b/config.py @@ -57,7 +57,8 @@ class Config(object): "kainos\.com", "salesforce\.com", "bitzesty\.com", - "dclgdatamart\.co\.uk"] + "dclgdatamart\.co\.uk", + "valtech\.co\.uk"] class Development(Config): diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index c1ffa12d7..29ae66132 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -76,6 +76,7 @@ def _gen_mock_field(x): 'test@police.uk', 'test@gov.police.uk', 'test@GOV.PoliCe.uk', + 'test@valtech.co.uk' ]) def test_valid_list_of_white_list_email_domains(app_, email): with app_.test_request_context():