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:
Chris Hill-Scott
2020-06-08 11:19:58 +01:00
parent 6edc356c22
commit deaf2059f5
4 changed files with 92 additions and 6 deletions

View File

@@ -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):