Get users for service to show on the manage team page.

Calls api endpoint /service/<service_id>/users to retrieve all users associated with the service
This commit is contained in:
Rebecca Law
2016-02-23 17:51:09 +00:00
parent bcf21f5ab2
commit 2905d11fe4
5 changed files with 31 additions and 6 deletions

View File

@@ -6,7 +6,8 @@ def test_should_show_overview_page(
app_,
api_user_active,
mock_login,
mock_get_service
mock_get_service,
mock_get_users_by_service
):
with app_.test_request_context():
with app_.test_client() as client:
@@ -35,7 +36,8 @@ def test_redirect_after_saving_user(
app_,
api_user_active,
mock_login,
mock_get_service
mock_get_service,
mock_get_users_by_service
):
with app_.test_request_context():
with app_.test_client() as client:
@@ -69,7 +71,8 @@ def test_invite_user(
app_,
api_user_active,
mock_login,
mock_get_service
mock_get_service,
mock_get_users_by_service
):
with app_.test_request_context():
with app_.test_client() as client: