mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Functionality added to existing endpoint without a user_has_permission decorator, tests passing.
Fix tests.
This commit is contained in:
@@ -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': [{}]})
|
||||
|
||||
Reference in New Issue
Block a user