Assume that we will only receive a UK number:

* We currently don't validate the number so this test
* will fail assuming an invalid number was passed.
* Since we do validation on the front end, for now
* we'll assume a valid number. This does need to be
* looked at in future.
This commit is contained in:
Imdad Ahad
2017-04-27 12:42:45 +01:00
parent 868e102f8a
commit 3de93cbcd0

View File

@@ -230,7 +230,7 @@ def test_send_user_code_for_sms_with_optional_to_field(client,
"""
Tests POST endpoint /user/<user_id>/sms-code with optional to field
"""
to_number = '+441119876757'
to_number = '+447119876757'
mocked = mocker.patch('app.user.rest.create_secret_code', return_value='11111')
mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async')
auth_header = create_authorization_header()