Files
notifications-admin/app/main/views
Katie Smith 6b055071f4 Specify mimetype for PDF letters to be downloaded
We had a report that when clicking on the 'Download this letter' link on
the notification page the file was not being downloaded as a PDF file
but was given a `.htm` file extension instead. We should be able to stop
that happening by using Flask's `send_file` function with the right mimetype.
This change updates the `view_letter_notification_as_preview` to use
`send_file` and splits out code to get the file data into a separate
function.

Mocks in the tests have been updated and some unused mocks removed.
2020-04-09 10:35:30 +01:00
..
2020-03-16 12:12:12 +00:00
2020-03-26 14:55:51 +00:00
2020-03-25 13:58:23 +00:00
2020-04-07 12:59:34 +01:00
2020-03-19 15:17:01 +00:00