Test can get letter template

It works already, just making sure it stays working.
This commit is contained in:
Chris Hill-Scott
2016-11-07 15:44:13 +00:00
parent 73fe331dc8
commit 6127ee422a
2 changed files with 6 additions and 1 deletions

View File

@@ -180,7 +180,7 @@ def sample_template(notify_db,
'created_by': created_by, 'created_by': created_by,
'archived': archived 'archived': archived
} }
if template_type == 'email': if template_type in ['email', 'letter']:
data.update({ data.update({
'subject': subject_line 'subject': subject_line
}) })

View File

@@ -321,6 +321,11 @@ def test_should_get_only_templates_for_that_service(notify_api, sample_user, ser
None, None,
'hello ((name)) weve received your ((thing))', 'hello ((name)) weve received your ((thing))',
'sms' 'sms'
),
(
'about your ((thing))',
'hello ((name)) weve received your ((thing))',
'letter'
) )
] ]
) )