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:
Chris Hill-Scott
2019-10-22 13:48:16 +01:00
committed by GitHub
8 changed files with 46 additions and 22 deletions

View 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)

View File

@@ -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': [],
}})