mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 08:18:24 -04:00
Fix send_email task requested from notifications endpoint.
This commit is contained in:
@@ -387,7 +387,6 @@ def send_notification(notification_type):
|
|||||||
send_email.apply_async((
|
send_email.apply_async((
|
||||||
service_id,
|
service_id,
|
||||||
notification_id,
|
notification_id,
|
||||||
'',
|
|
||||||
encryption.encrypt(notification),
|
encryption.encrypt(notification),
|
||||||
datetime.utcnow().strftime(DATETIME_FORMAT)
|
datetime.utcnow().strftime(DATETIME_FORMAT)
|
||||||
), queue='email')
|
), queue='email')
|
||||||
|
|||||||
@@ -946,7 +946,6 @@ def test_should_allow_valid_email_notification(notify_api, sample_email_template
|
|||||||
app.celery.tasks.send_email.apply_async.assert_called_once_with(
|
app.celery.tasks.send_email.apply_async.assert_called_once_with(
|
||||||
(str(sample_email_template.service_id),
|
(str(sample_email_template.service_id),
|
||||||
notification_id,
|
notification_id,
|
||||||
"",
|
|
||||||
"something_encrypted",
|
"something_encrypted",
|
||||||
"2016-01-01T11:09:00.061258"),
|
"2016-01-01T11:09:00.061258"),
|
||||||
queue="email"
|
queue="email"
|
||||||
|
|||||||
Reference in New Issue
Block a user