Don’t create an example email template

We reckon that:

- a ‘blank slate’ templates page is a better start
- the example template hurt more than it helped when it comes to
  understanding placeholders
This commit is contained in:
Chris Hill-Scott
2016-07-01 10:40:34 +01:00
parent 0d44fc770c
commit a5a35f1a6b
2 changed files with 1 additions and 8 deletions

View File

@@ -53,13 +53,6 @@ def add_service():
'Hey ((name)), Im trying out Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
service_id
)
example_email_template = service_api_client.create_service_template(
'Example email template',
'email',
'Hey ((name)),\n\nIm trying out Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
service_id,
'Trying out Notify'
)
return redirect(url_for(
'main.send_test',

View File

@@ -35,7 +35,7 @@ def test_should_add_service_and_redirect_to_tour_when_no_services(app_,
user_id=api_user_active.id,
email_from='testing.the.post'
)
assert len(mock_create_service_template.call_args_list) == 2
assert len(mock_create_service_template.call_args_list) == 1
assert session['service_id'] == 101
assert response.status_code == 302
assert response.location == url_for(