14 lines
331 B
Python
14 lines
331 B
Python
from apps.users.tasks import send_verification_sms
|
|
|
|
|
|
def test_send_verification_sms_skips_real_delivery_without_api_key(settings):
|
|
settings.SMS_APIKEY = ""
|
|
|
|
result = send_verification_sms("09123456789", "12345")
|
|
|
|
assert result == {
|
|
"mobile": "09123456789",
|
|
"code": "12345",
|
|
"sent": False,
|
|
}
|