mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Merge pull request #1199 from alphagov/fix-broken-links-template-stats
Fix broken links on template statistics page
This commit is contained in:
@@ -321,6 +321,7 @@ def format_template_stats_to_list(stats_dict):
|
||||
template['counts'].get(status, 0)
|
||||
for status in REQUESTED_STATUSES
|
||||
),
|
||||
id=template_id,
|
||||
**template
|
||||
)
|
||||
|
||||
|
||||
@@ -649,11 +649,13 @@ def test_format_template_stats_to_list():
|
||||
'counts': counts,
|
||||
'name': 'foo',
|
||||
'requested_count': 7,
|
||||
'id': 'template_1_id',
|
||||
} in stats_list
|
||||
assert {
|
||||
'counts': {},
|
||||
'name': 'bar',
|
||||
'requested_count': 0,
|
||||
'id': 'template_2_id',
|
||||
} in stats_list
|
||||
|
||||
|
||||
|
||||
@@ -1289,7 +1289,6 @@ def mock_get_monthly_template_statistics(mocker, service_one, fake_uuid):
|
||||
},
|
||||
"name": 'My first template',
|
||||
"type": 'sms',
|
||||
"id": fake_uuid,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user