mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
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:
@@ -53,7 +53,7 @@ from tests.conftest import (
|
||||
'created', 'pending', 'sending', 'pending-virus-check',
|
||||
'delivered', 'sent', 'returned-letter',
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure',
|
||||
'virus-scan-failed', 'cancelled',
|
||||
'virus-scan-failed',
|
||||
]
|
||||
),
|
||||
(
|
||||
@@ -66,7 +66,7 @@ from tests.conftest import (
|
||||
),
|
||||
(
|
||||
'failed',
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed', 'cancelled']
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed']
|
||||
)
|
||||
]
|
||||
)
|
||||
|
||||
@@ -157,7 +157,7 @@ def test_jobs_page_doesnt_show_scheduled_on_page_2(
|
||||
'created', 'pending', 'sending', 'pending-virus-check',
|
||||
'delivered', 'sent', 'returned-letter',
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure',
|
||||
'virus-scan-failed', 'cancelled',
|
||||
'virus-scan-failed',
|
||||
]
|
||||
),
|
||||
(
|
||||
@@ -170,7 +170,7 @@ def test_jobs_page_doesnt_show_scheduled_on_page_2(
|
||||
),
|
||||
(
|
||||
'failed',
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed', 'cancelled']
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed']
|
||||
)
|
||||
]
|
||||
)
|
||||
@@ -340,7 +340,6 @@ def test_should_show_letter_job(
|
||||
'permanent-failure',
|
||||
'technical-failure',
|
||||
'virus-scan-failed',
|
||||
'cancelled',
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
@@ -202,7 +202,11 @@ def test_notification_page_shows_page_for_letter_notification(
|
||||
),
|
||||
(
|
||||
'validation-failed',
|
||||
<<<<<<< HEAD
|
||||
'Validation failed – content is outside the printable area',
|
||||
=======
|
||||
'Can’t print this letter – content is outside the printable area.',
|
||||
>>>>>>> Cancelled notifications do not show as failures on dashboard stats
|
||||
),
|
||||
))
|
||||
@freeze_time("2016-01-01 01:01")
|
||||
|
||||
Reference in New Issue
Block a user