notify-536: accurately reflect delivery receipts in UI (#551)

This commit is contained in:
Kenneth Kehl
2023-06-27 08:20:58 -07:00
committed by GitHub
parent 87bd216609
commit d2d7a75a5f
11 changed files with 43 additions and 19 deletions

View File

@@ -520,7 +520,7 @@ def test_get_status_filters_calculates_stats(client_request):
assert {label: count for label, _option, _link, count in ret} == {
'total': 6,
'sending': 3,
'pending': 3,
'failed': 2,
'delivered': 1
}
@@ -530,7 +530,7 @@ def test_get_status_filters_in_right_order(client_request):
ret = get_status_filters(Service({'id': 'foo'}), 'sms', STATISTICS)
assert [label for label, _option, _link, _count in ret] == [
'total', 'sending', 'delivered', 'failed'
'total', 'pending', 'delivered', 'failed'
]