mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Automate counting of live services and orgs
Returns the data calculated by the API. Stored in Redis against a hardcoded key so that no-one hammering the home page is directly hitting the database.
This commit is contained in:
@@ -3351,3 +3351,11 @@ def mock_move_to_template_folder(mocker):
|
||||
@pytest.fixture
|
||||
def mock_create_template_folder(mocker):
|
||||
return mocker.patch('app.template_folder_api_client.create_template_folder', return_value=sample_uuid())
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_service_and_organisation_counts(mocker):
|
||||
return mocker.patch('app.status_api_client.get_count_of_live_services_and_organisations', return_value={
|
||||
'organisations': 111,
|
||||
'services': 9999,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user