mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Correct whitelist to non-government in test name
See c31264d4c for why ‘whitelist’ should be avoided. The use of
whitelist here was not referring to the user-maintained list, but to
mean ‘not a government’ email address. This commit renames these tests
to make that difference clear.
This commit is contained in:
@@ -314,7 +314,7 @@ def test_should_return_form_errors_with_duplicate_service_name_regardless_of_cas
|
||||
)
|
||||
|
||||
|
||||
def test_non_whitelist_user_cannot_access_create_service_page(
|
||||
def test_non_government_user_cannot_access_create_service_page(
|
||||
client_request,
|
||||
mock_get_non_govuser,
|
||||
api_nongov_user_active,
|
||||
@@ -327,7 +327,7 @@ def test_non_whitelist_user_cannot_access_create_service_page(
|
||||
)
|
||||
|
||||
|
||||
def test_non_whitelist_user_cannot_create_service(
|
||||
def test_non_government_user_cannot_create_service(
|
||||
client_request,
|
||||
mock_get_non_govuser,
|
||||
api_nongov_user_active,
|
||||
|
||||
@@ -15,7 +15,7 @@ def test_should_render_forgot_password(client):
|
||||
|
||||
@pytest.mark.parametrize('email_address', [
|
||||
'test@user.gov.uk',
|
||||
'someuser@notonwhitelist.com'
|
||||
'someuser@notgovernment.com'
|
||||
])
|
||||
def test_should_redirect_to_password_reset_sent_for_valid_email(
|
||||
client,
|
||||
|
||||
@@ -684,7 +684,7 @@ def test_should_show_folder_permission_form_if_service_has_folder_permissions_en
|
||||
|
||||
@pytest.mark.parametrize('email_address, gov_user', [
|
||||
('test@example.gov.uk', True),
|
||||
('test@nonwhitelist.com', False)
|
||||
('test@example.com', False)
|
||||
])
|
||||
def test_invite_user(
|
||||
client_request,
|
||||
@@ -735,7 +735,7 @@ def test_invite_user(
|
||||
])
|
||||
@pytest.mark.parametrize('email_address, gov_user', [
|
||||
('test@example.gov.uk', True),
|
||||
('test@nonwhitelist.com', False)
|
||||
('test@example.com', False)
|
||||
])
|
||||
def test_invite_user_with_email_auth_service(
|
||||
client_request,
|
||||
|
||||
Reference in New Issue
Block a user