fix(users): support profile picture delete and dev sms fallback

This commit is contained in:
2026-04-24 22:20:13 +03:30
parent 7cae494892
commit a44995017b
4 changed files with 52 additions and 4 deletions

View 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,
}