mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Short circuit if already a team member
It would be confusing if people got invited twice, so let’s tell people if someone’s already been invited.
This commit is contained in:
@@ -1315,6 +1315,21 @@ def active_user_with_permission_to_two_services(fake_uuid):
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def active_user_with_permission_to_other_service(
|
||||
active_user_with_permission_to_two_services
|
||||
):
|
||||
active_user_with_permission_to_two_services['permissions'].pop(SERVICE_ONE_ID)
|
||||
active_user_with_permission_to_two_services['services'].pop(0)
|
||||
active_user_with_permission_to_two_services['name'] = (
|
||||
'Service Two User'
|
||||
)
|
||||
active_user_with_permission_to_two_services['email_address'] = (
|
||||
'service-two-user@test.gov.uk'
|
||||
)
|
||||
return active_user_with_permission_to_two_services
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def active_caseworking_user(fake_uuid):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user