return fake "received_by_notify" status for letter notifications

created and sending aren't quite as helpful for letters, since their
journey through notify and our providers is so different to emails/sms.
So instead, we should return estimated_dispatch_date (in a future PR)
and the status should just read received_by_notify
This commit is contained in:
Leo Hemsted
2017-09-08 16:35:13 +01:00
parent 4d1c0a36c6
commit 4936fa384c
2 changed files with 26 additions and 10 deletions

View File

@@ -116,8 +116,9 @@ def test_notification_for_csv_returns_correct_job_row_number(notify_db, notify_d
('sms', 'temporary-failure', 'Phone not accepting messages right now'),
('sms', 'permanent-failure', 'Phone number doesnt exist'),
('sms', 'sent', 'Sent internationally'),
('letter', 'permanent-failure', 'Permanent failure'),
('letter', 'delivered', 'Delivered')
('letter', 'created', 'Received by Notify'),
('letter', 'sending', 'Received by Notify'),
('letter', 'technical-failure', 'Technical failure')
])
def test_notification_for_csv_returns_formatted_status(
notify_db,