Firetext does not have a status code for temporary-failure.

In order to set a message as temporary-failure, we check if it is in pending status first.
Otherwise a delivery receipt for failure is set to permanent failure.
This commit is contained in:
Rebecca Law
2016-05-26 16:46:00 +01:00
parent c5ec07a9ce
commit 25a1b7f31c
8 changed files with 208 additions and 154 deletions

View File

@@ -22,8 +22,8 @@ def test_should_return_correct_details_for_bounced():
def test_should_return_correct_details_for_complaint():
response_dict = get_firetext_responses('2')
assert response_dict['message'] == 'Undelivered (Pending with Network)'
assert response_dict['notification_status'] == 'delivered'
assert response_dict['notification_statistics_status'] == 'delivered'
assert response_dict['notification_status'] == 'pending'
assert response_dict['notification_statistics_status'] is None
assert response_dict['success']