Cancelled notifications do not show as failures on dashboard stats

Also update tests after we no longer show cancelled letters
This commit is contained in:
Pea Tyczynska
2019-01-08 17:52:01 +00:00
parent 848e88c7ca
commit dcc590ec96
6 changed files with 14 additions and 25 deletions

View File

@@ -40,7 +40,7 @@ from werkzeug.datastructures import MultiDict
SENDING_STATUSES = ['created', 'pending', 'sending', 'pending-virus-check']
DELIVERED_STATUSES = ['delivered', 'sent', 'returned-letter']
FAILURE_STATUSES = ['failed', 'temporary-failure', 'permanent-failure',
'technical-failure', 'virus-scan-failed', 'cancelled']
'technical-failure', 'virus-scan-failed']
REQUESTED_STATUSES = SENDING_STATUSES + DELIVERED_STATUSES + FAILURE_STATUSES