mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-24 12:21:22 -05:00
Add validation-failed status to FAILURE_STATUSES in admin utils
This commit is contained in:
@@ -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']
|
||||
'technical-failure', 'virus-scan-failed', 'validation-failed']
|
||||
REQUESTED_STATUSES = SENDING_STATUSES + DELIVERED_STATUSES + FAILURE_STATUSES
|
||||
|
||||
|
||||
|
||||
@@ -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',
|
||||
'virus-scan-failed', 'validation-failed'
|
||||
]
|
||||
),
|
||||
(
|
||||
@@ -66,7 +66,10 @@ from tests.conftest import (
|
||||
),
|
||||
(
|
||||
'failed',
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed']
|
||||
[
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure',
|
||||
'virus-scan-failed', 'validation-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',
|
||||
'virus-scan-failed', 'validation-failed'
|
||||
]
|
||||
),
|
||||
(
|
||||
@@ -170,7 +170,10 @@ def test_jobs_page_doesnt_show_scheduled_on_page_2(
|
||||
),
|
||||
(
|
||||
'failed',
|
||||
['failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed']
|
||||
[
|
||||
'failed', 'temporary-failure', 'permanent-failure', 'technical-failure', 'virus-scan-failed',
|
||||
'validation-failed'
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
@@ -340,6 +343,7 @@ def test_should_show_letter_job(
|
||||
'permanent-failure',
|
||||
'technical-failure',
|
||||
'virus-scan-failed',
|
||||
'validation-failed'
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user