Send count of sent letters to performance platform

Now we’ve been sending real letters for quite a while it would be nice
to show how many.
This commit is contained in:
Chris Hill-Scott
2018-03-02 16:05:26 +00:00
parent d4db959a55
commit 7e1aa03371
3 changed files with 16 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ def test_get_total_sent_notifications_yesterday_returns_expected_totals_dict(
# Create some notifications for the day before
yesterday = datetime(2016, 1, 10, 15, 30, 0, 0)
with freeze_time(yesterday):
notification_history(notification_type='letter')
notification_history(notification_type='sms')
notification_history(notification_type='sms')
notification_history(notification_type='email')
@@ -71,5 +72,8 @@ def test_get_total_sent_notifications_yesterday_returns_expected_totals_dict(
},
"sms": {
"count": 2
},
"letter": {
"count": 1
}
}