From 6127ee422aa513692d0510751882cbce7e991867 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Mon, 7 Nov 2016 15:44:13 +0000 Subject: [PATCH] Test can get letter template It works already, just making sure it stays working. --- tests/app/conftest.py | 2 +- tests/app/template/test_rest.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/app/conftest.py b/tests/app/conftest.py index 435ea3bf5..566c888e1 100644 --- a/tests/app/conftest.py +++ b/tests/app/conftest.py @@ -180,7 +180,7 @@ def sample_template(notify_db, 'created_by': created_by, 'archived': archived } - if template_type == 'email': + if template_type in ['email', 'letter']: data.update({ 'subject': subject_line }) diff --git a/tests/app/template/test_rest.py b/tests/app/template/test_rest.py index d448f3d62..7c6525244 100644 --- a/tests/app/template/test_rest.py +++ b/tests/app/template/test_rest.py @@ -321,6 +321,11 @@ def test_should_get_only_templates_for_that_service(notify_api, sample_user, ser None, 'hello ((name)) we’ve received your ((thing))', 'sms' + ), + ( + 'about your ((thing))', + 'hello ((name)) we’ve received your ((thing))', + 'letter' ) ] )