fix(users): support profile picture delete and dev sms fallback
This commit is contained in:
13
apps/users/tests/test_tasks.py
Normal file
13
apps/users/tests/test_tasks.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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,
|
||||
}
|
||||
Reference in New Issue
Block a user