Disabled the template_history endpoint

- Updated tests and added a new mock_get_monthly_template_usage
- Deleted get_monthly_template_statistics_for_service
- Added new test to test the redirection of the old endpoint
This commit is contained in:
Richard Chapman
2017-11-24 15:20:40 +00:00
parent 1681b17fab
commit 155e432aa6
4 changed files with 32 additions and 26 deletions

View File

@@ -20,12 +20,6 @@ class TemplateStatisticsApiClient(NotifyAdminAPIClient):
params=params
)['data']
def get_monthly_template_statistics_for_service(self, service_id, year):
return self.get(
url='/service/{}/notifications/templates/monthly?year={}'.format(service_id, year)
)['data']
def get_monthly_template_usage_for_service(self, service_id, year):
return self.get(