organisation dashboard page

This commit is contained in:
chrisw
2018-02-14 13:08:44 +00:00
parent c1e3658a8f
commit dd2231056d
11 changed files with 144 additions and 47 deletions

View File

@@ -2690,3 +2690,18 @@ def mock_update_service_organisation(mocker):
'app.organisations_client.update_service_organisation',
side_effect=_update_service_organisation
)
@pytest.fixture(scope='function')
def mock_get_organisation_services(mocker):
def _get_organisation_services(organisation_id):
return [
service_json('12345', 'service one'),
service_json('67890', 'service two'),
service_json('09876', 'service three')
]
return mocker.patch(
'app.organisations_client.get_organisation_services',
side_effect=_get_organisation_services
)