mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-18 04:06:27 -04:00
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:
@@ -53,13 +53,6 @@ def add_service():
|
||||
'Hey ((name)), I’m 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\nI’m 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',
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user