diff --git a/app/models/service.py b/app/models/service.py index d1530fa2c..31703977f 100644 --- a/app/models/service.py +++ b/app/models/service.py @@ -39,8 +39,8 @@ class Service(): } TEMPLATE_TYPES = ( - 'sms', 'email', + 'sms', 'letter', ) diff --git a/tests/app/main/views/test_template_folders.py b/tests/app/main/views/test_template_folders.py index 9e80ea260..8d391b0b9 100644 --- a/tests/app/main/views/test_template_folders.py +++ b/tests/app/main/views/test_template_folders.py @@ -55,7 +55,7 @@ def _template(template_type, name, parent=None, template_id=None): 'Templates', [], {}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'folder_one 2 folders', 'folder_one / folder_one_one 1 template, 1 folder', @@ -132,7 +132,7 @@ def _template(template_type, name, parent=None, template_id=None): 'Templates / folder_one', [{'template_type': 'all'}], {'template_folder_id': PARENT_FOLDER_ID}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'folder_one_one 1 template, 1 folder', 'folder_one_one / folder_one_one_one 1 template', @@ -193,7 +193,7 @@ def _template(template_type, name, parent=None, template_id=None): {'template_type': 'all', 'template_folder_id': PARENT_FOLDER_ID}, ], {'template_folder_id': CHILD_FOLDER_ID}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'folder_one_one_one 1 template', 'folder_one_one_one / sms_template_nested Text message template', @@ -219,7 +219,7 @@ def _template(template_type, name, parent=None, template_id=None): {'template_type': 'all', 'template_folder_id': CHILD_FOLDER_ID}, ], {'template_folder_id': GRANDCHILD_FOLDER_ID}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'sms_template_nested Text message template', ], @@ -254,7 +254,7 @@ def _template(template_type, name, parent=None, template_id=None): 'Templates / folder_two', [{'template_type': 'all'}], {'template_folder_id': FOLDER_TWO_ID}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [], [], [], diff --git a/tests/app/main/views/test_templates.py b/tests/app/main/views/test_templates.py index 68ed568ef..4b9521432 100644 --- a/tests/app/main/views/test_templates.py +++ b/tests/app/main/views/test_templates.py @@ -96,7 +96,7 @@ def test_should_show_add_template_form_if_service_has_folder_permission( active_user_view_permissions, 'Templates', {}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'sms_template_one', 'sms_template_two', @@ -124,14 +124,14 @@ def test_should_show_add_template_form_if_service_has_folder_permission( active_user_view_permissions, 'Templates', {'template_type': 'letter'}, - ['All', 'Text message', 'Email'], + ['All', 'Email', 'Text message'], ['letter_template_one', 'letter_template_two'], ), ( active_caseworking_user, 'Templates', {}, - ['Text message', 'Email', 'Letter'], + ['Email', 'Text message', 'Letter'], [ 'sms_template_one', 'sms_template_two',