Build the from address in the task instead of the rest call.

This commit is contained in:
Rebecca Law
2016-06-13 14:09:03 +01:00
parent ea80596e73
commit c9f1eb65a7
3 changed files with 5 additions and 2 deletions

View File

@@ -946,7 +946,7 @@ def test_should_allow_valid_email_notification(notify_api, sample_email_template
app.celery.tasks.send_email.apply_async.assert_called_once_with(
(str(sample_email_template.service_id),
notification_id,
"\"Sample service\" <sample.service@test.notify.com>",
"",
"something_encrypted",
"2016-01-01T11:09:00.061258"),
queue="email"