mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Fix letter branding preview
Template preview requires `template_type` to be passed in now.
This commit is contained in:
@@ -845,7 +845,14 @@ def test_letter_branding_preview_image(
|
||||
url_for('no_cookie.letter_branding_preview_image', filename=original_filename)
|
||||
)
|
||||
|
||||
mocked_preview.assert_called_with(ANY, new_filename)
|
||||
mocked_preview.assert_called_with(
|
||||
{
|
||||
'subject': 'An example letter',
|
||||
'content': ANY,
|
||||
'template_type': 'letter',
|
||||
},
|
||||
new_filename,
|
||||
)
|
||||
assert resp.get_data(as_text=True) == 'foo'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user