Merge pull request #1180 from alphagov/example-template-is-priority

Make example text message template priority
This commit is contained in:
Chris Hill-Scott
2017-03-09 10:54:25 +00:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -75,7 +75,8 @@ def add_service():
'Example text message template',
'sms',
'Hey ((name)), Im trying out Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
service_id
service_id,
process_type='priority',
)
return redirect(url_for(

View File

@@ -46,7 +46,16 @@ def test_should_add_service_and_redirect_to_tour_when_no_services(
user_id=api_user_active.id,
email_from='testing.the.post'
)
assert len(mock_create_service_template.call_args_list) == 1
mock_create_service_template.assert_called_once_with(
'Example text message template',
'sms',
(
'Hey ((name)), Im trying out Notify. Today is '
'((day of week)) and my favourite colour is ((colour)).'
),
101,
process_type='priority',
)
assert session['service_id'] == 101
assert response.status_code == 302
assert response.location == url_for(