Changed the body of the request to use the right phone number, the phone number is not currently used in the callback logic but if it was then this may cause a problem.

Changed the test to use a 077009 series phone number.
This commit is contained in:
Rebecca Law
2017-01-23 10:43:33 +00:00
parent 5e3bb08860
commit fb27a2d4c9
2 changed files with 14 additions and 6 deletions

View File

@@ -27,7 +27,12 @@ def send_sms_response(provider, reference, to):
# we need to send a pending status updated then a permanent-failure
if body['status'] == '2': # pending status
make_request(SMS_TYPE, provider, body, headers)
body = firetext_callback(reference, perm_fail)
# 1 is a declined status for firetext, will result in a temp-failure
body = {'mobile': to,
'status': "1",
'time': '2016-03-10 14:17:00',
'reference': reference
}
make_request(SMS_TYPE, provider, body, headers)