mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Refactored code to make it more maintainable and changed an error type
* Rather than an abort 404 returned a 500 and InvalidRequest so that the error is more easily handled on the admin console. If the file is missing but expected to be there is actually an internal error for admin * Refactored the code to remove duplicate code in calls to template preview by creating a new private method which is called with specific parameters
This commit is contained in:
@@ -949,7 +949,7 @@ def test_preview_letter_template_precompiled_s3_error(
|
||||
service_id=notification.service_id,
|
||||
notification_id=notification.id,
|
||||
file_type='pdf',
|
||||
_expected_status=404
|
||||
_expected_status=500
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user