The send_sms task will created the notification with a status = created.

The encrypted_notification for the send_sms_to_provider task has been made optional.
This commit is contained in:
Rebecca Law
2016-06-22 13:32:27 +01:00
parent 3d3bff25a8
commit fcb5ca9ef4
5 changed files with 83 additions and 288 deletions

View File

@@ -1,4 +1,4 @@
from datetime import datetime
from datetime import datetime, timedelta
import uuid
import pytest
@@ -1259,7 +1259,8 @@ def test_get_notifications_for_service_returns_merged_template_content(notify_ap
notify_db_session,
service=sample_template_with_placeholders.service,
template=sample_template_with_placeholders,
personalisation={"name": "merged with first"})
personalisation={"name": "merged with first"},
created_at=datetime.utcnow() - timedelta(seconds=1))
create_sample_notification(notify_db,
notify_db_session,