From f1feaaaccc05455ae7c7d17954e81b989e65e5e6 Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Tue, 3 Jan 2017 12:34:57 +0000 Subject: [PATCH] add hmcts.net to email whitelist (HM Courts & Tribunals Service) --- config.py | 1 + tests/app/main/test_validators.py | 1 + 2 files changed, 2 insertions(+) diff --git a/config.py b/config.py index ec929e34d..a81fc4e62 100644 --- a/config.py +++ b/config.py @@ -64,6 +64,7 @@ class Config(object): r"dclgdatamart\.co\.uk", r"ucds\.email", r"naturalengland\.org\.uk", + r"hmcts.net", ] diff --git a/tests/app/main/test_validators.py b/tests/app/main/test_validators.py index 672666bf5..09c12f3d3 100644 --- a/tests/app/main/test_validators.py +++ b/tests/app/main/test_validators.py @@ -81,6 +81,7 @@ def _gen_mock_field(x): 'test@GOV.PoliCe.uk', 'test@ucds.email', 'test@naturalengland.org.uk', + 'test@hmcts.net', ]) def test_valid_list_of_white_list_email_domains(app_, email): with app_.test_request_context():