Merge pull request #196 from alphagov/get-users-for-service

Get users for service
This commit is contained in:
Adam Shimali
2016-02-24 17:41:45 +00:00
5 changed files with 32 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:
@@ -15,6 +16,7 @@ def test_should_show_overview_page(
assert 'Manage team' in response.get_data(as_text=True)
assert response.status_code == 200
mock_get_users_by_service.assert_called_once_with(service_id='55555')
def test_should_show_page_for_one_user(
@@ -35,7 +37,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 +72,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: