mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-02 23:20:56 -04:00
2767 passing
This commit is contained in:
@@ -15,23 +15,10 @@ def _gen_mock_field(x):
|
||||
return Mock(data=x)
|
||||
|
||||
|
||||
@pytest.mark.parametrize("email", [
|
||||
'test@gov.uk',
|
||||
'test@GOV.UK',
|
||||
'test@gov.uK',
|
||||
'test@test.test.gov.uk',
|
||||
'test@test.gov.uk',
|
||||
'test@nhs.uk',
|
||||
'test@gov.nhs.uk',
|
||||
'test@nhs.net',
|
||||
'test@gov.nhs.net',
|
||||
'test@nhs.scot',
|
||||
'test@police.uk',
|
||||
'test@gov.police.uk',
|
||||
'test@GOV.PoliCe.uk',
|
||||
'test@cjsm.net',
|
||||
'test@example.ac.uk',
|
||||
'test@example.sch.uk',
|
||||
@pytest.mark.parametrize("email", [ # TODO: update with email_domains.txt
|
||||
'test@gsa.gov',
|
||||
'test@gmail.com',
|
||||
'test@amazonses.com'
|
||||
])
|
||||
def test_valid_list_of_white_list_email_domains(
|
||||
client_request,
|
||||
@@ -41,32 +28,13 @@ def test_valid_list_of_white_list_email_domains(
|
||||
email_domain_validators(None, _gen_mock_field(email))
|
||||
|
||||
|
||||
@pytest.mark.parametrize("email", [
|
||||
'test@ukgov.uk',
|
||||
'test@gov.uk.uk',
|
||||
'test@gov.test.uk',
|
||||
'test@ukmod.uk',
|
||||
'test@mod.uk.uk',
|
||||
'test@mod.test.uk',
|
||||
'test@ukddc-mod.org',
|
||||
'test@ddc-mod.org.uk',
|
||||
'test@ddc-mod.uk.org',
|
||||
'test@ukgov.scot',
|
||||
'test@gov.scot.uk',
|
||||
'test@gov.test.scot',
|
||||
'test@ukparliament.uk',
|
||||
'test@parliament.uk.uk',
|
||||
'test@parliament.test.uk',
|
||||
'test@uknhs.uk',
|
||||
'test@nhs.uk.uk',
|
||||
'test@uknhs.net',
|
||||
'test@nhs.net.uk',
|
||||
'test@nhs.test.net',
|
||||
'test@ukpolice.uk',
|
||||
'test@police.uk.uk',
|
||||
'test@police.test.uk',
|
||||
'test@ucds.com',
|
||||
'test@123bl.uk',
|
||||
@pytest.mark.parametrize("email", [ # TODO: update with email_domains.txt
|
||||
'test@gov.gov',
|
||||
'test@gov.gsa',
|
||||
'test@gmail.co',
|
||||
'test@mail.co',
|
||||
'test@amazonses.co',
|
||||
'test@amazon.com'
|
||||
])
|
||||
def test_invalid_list_of_white_list_email_domains(
|
||||
client_request,
|
||||
|
||||
Reference in New Issue
Block a user