mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-22 16:31:15 -05:00
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:
@@ -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
|
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')
|
mocked = mocker.patch('app.user.rest.create_secret_code', return_value='11111')
|
||||||
mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async')
|
mocker.patch('app.celery.provider_tasks.deliver_sms.apply_async')
|
||||||
auth_header = create_authorization_header()
|
auth_header = create_authorization_header()
|
||||||
|
|||||||
Reference in New Issue
Block a user