If the add sms sender is for an inbound number use the number from the inbound number object, rather than the value passed in.

This commit is contained in:
Rebecca Law
2017-10-19 16:29:54 +01:00
parent d975f30888
commit d1c9335307
2 changed files with 6 additions and 3 deletions

View File

@@ -2595,7 +2595,7 @@ def test_add_service_sms_sender_when_it_is_an_inbound_number(client, notify_db_s
service = create_service()
inbound_number = create_inbound_number(number='12345')
data = {
"sms_sender": inbound_number.number,
"sms_sender": str(inbound_number.id),
"is_default": False,
"inbound_number_id": str(inbound_number.id)
}