From 8db94eafc844aa80d60ecebf26a0835469098882 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 18 Oct 2019 09:46:25 +0100 Subject: [PATCH] Use service-specific page template for history --- app/templates/views/temp-history.html | 2 +- tests/conftest.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/templates/views/temp-history.html b/app/templates/views/temp-history.html index 8d0433c36..946ee3de2 100644 --- a/app/templates/views/temp-history.html +++ b/app/templates/views/temp-history.html @@ -1,4 +1,4 @@ -{% extends "withoutnav_template.html" %} +{% extends "withnav_template.html" %} {% from "components/page-footer.html" import page_footer %} {% from "components/table.html" import list_table, field %} diff --git a/tests/conftest.py b/tests/conftest.py index 8ec45e628..c37a4b8fb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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': [], + }})