mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Merge pull request #3151 from alphagov/history-page-tidy-up
Bring the service history page up to our current coding standards
This commit is contained in:
8
tests/app/main/views/test_history.py
Normal file
8
tests/app/main/views/test_history.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from tests.conftest import SERVICE_ONE_ID
|
||||
|
||||
|
||||
def test_history(
|
||||
client_request,
|
||||
mock_get_service_history,
|
||||
):
|
||||
client_request.get('main.history', service_id=SERVICE_ONE_ID)
|
||||
@@ -3501,3 +3501,12 @@ def mock_get_service_and_organisation_counts(mocker):
|
||||
'organisations': 111,
|
||||
'services': 9999,
|
||||
})
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def mock_get_service_history(mocker):
|
||||
return mocker.patch('app.service_api_client.get_service_history', return_value={'data': {
|
||||
'service_history': [],
|
||||
'api_key_history': [],
|
||||
'events': [],
|
||||
}})
|
||||
|
||||
Reference in New Issue
Block a user