Merge pull request #3488 from alphagov/ask-for-less-detailed-templates

Ask API for less detailed JSON for all templates
This commit is contained in:
Chris Hill-Scott
2020-06-23 14:12:58 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -276,7 +276,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
"""
Retrieve all templates for service.
"""
endpoint = '/service/{service_id}/template'.format(
endpoint = '/service/{service_id}/template?detailed=False'.format(
service_id=service_id)
return self.get(endpoint)

View File

@@ -275,7 +275,7 @@ def test_client_returns_count_of_service_templates(
],
None,
[
call('/service/{}/template'.format(SERVICE_ONE_ID))
call('/service/{}/template?detailed=False'.format(SERVICE_ONE_ID))
],
[
call(