mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 21:19:38 -04:00
Merge pull request #619 from alphagov/platform-admin-stats
Headline stats on the platform admin page
This commit is contained in:
@@ -202,6 +202,15 @@ def mock_get_aggregate_service_statistics(mocker):
|
||||
'app.statistics_api_client.get_7_day_aggregate_for_service', side_effect=_create)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_all_service_statistics(mocker):
|
||||
def _create(day):
|
||||
return {'data': [{}]}
|
||||
|
||||
return mocker.patch(
|
||||
'app.statistics_api_client.get_statistics_for_all_services_for_day', side_effect=_create)
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_service_template(mocker):
|
||||
def _get(service_id, template_id, version=None):
|
||||
|
||||
Reference in New Issue
Block a user