Make example text message template priority

The tour teaches you how Notify works by letting you do a thing and then
showing you the effect of the thing you’ve just done – a text message on
your phone.

This is not as effective if you don’t get the text message quickly. It
breaks the association you make between what you’ve done on the computer
and what’s happening on your phone.

Slow text message delivery can happen if you’re doing a big job. We can
get around this by making your text message use the priority queue.

This was observed in the pilot research session yesterday.
This commit is contained in:
Chris Hill-Scott
2017-03-09 10:30:19 +00:00
parent 2391410435
commit 72fa3713e8
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(