The admin app now sends the email from when creating a service and when updating the service name.

This PR removes the need for the email_safe function. The api does not create the email_from field for the service.
Tests were updated to reflect this change.
This commit is contained in:
Rebecca Law
2016-03-31 17:46:18 +01:00
parent 7ec1f31bab
commit 8df4919029
10 changed files with 57 additions and 57 deletions

View File

@@ -303,8 +303,8 @@ def test_should_get_only_templates_for_that_servcie(notify_api, service_factory)
with notify_api.test_request_context():
with notify_api.test_client() as client:
service_1 = service_factory.get('service 1')
service_2 = service_factory.get('service 2')
service_1 = service_factory.get('service 1', email_from='service.1')
service_2 = service_factory.get('service 2', email_from='service.2')
auth_header_1 = create_authorization_header(
path='/service/{}/template'.format(service_1.id),