mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-14 23:08:07 -04:00
Fix mixed-up error messages
The too many pages error was being returned when the file couldn’t be read. This commit corrects the error message, and adds a test to make sure this case is covered.
This commit is contained in:
@@ -469,6 +469,19 @@ def test_get_letter_validation_error_for_unknown_error():
|
||||
'Letters must be 10 pages or less.'
|
||||
),
|
||||
),
|
||||
(
|
||||
'unable-to-read-the-file',
|
||||
[2],
|
||||
'There’s a problem with your file',
|
||||
(
|
||||
'Notify cannot read this PDF.'
|
||||
'Save a new copy of your file and try again.'
|
||||
),
|
||||
(
|
||||
'Validation failed because Notify cannot read this PDF.'
|
||||
'Save a new copy of your file and try again.'
|
||||
),
|
||||
),
|
||||
])
|
||||
def test_get_letter_validation_error_for_known_errors(
|
||||
client_request,
|
||||
|
||||
Reference in New Issue
Block a user