Add support for new template statistics API response

The new API response for template statistics returns separate
count for each status. We get rid of template stats for cancelled
notifications and group the rest of the statuses together.
This commit is contained in:
Pea Tyczynska
2019-01-15 16:19:23 +00:00
parent 46bfb541c8
commit 4fe239abb2
3 changed files with 11 additions and 7 deletions

View File

@@ -2268,7 +2268,7 @@ def mock_get_template_statistics(mocker, service_one, fake_uuid):
"template_name": template['name'],
"template_type": template['template_type'],
"template_id": template['id'],
"day": "2016-04-04"
"is_precompiled_letter": False
}
def _get_stats(service_id, limit_days=None):