Functionality added to existing endpoint without a user_has_permission decorator, tests passing.

Fix tests.
This commit is contained in:
Nicholas Staples
2016-03-23 12:15:57 +00:00
parent bb08589875
commit 961ed6b362
7 changed files with 58 additions and 8 deletions

View File

@@ -762,3 +762,10 @@ def mock_set_user_permissions(mocker):
@pytest.fixture(scope='function')
def mock_remove_user_from_service(mocker):
return mocker.patch('app.service_api_client.remove_user_from_service', return_value=None)
@pytest.fixture(scope='function')
def mock_get_service_statistics(mocker):
return mocker.patch(
'app.statistics_api_client.get_statistics_for_service',
return_value={'data': [{}]})