Implement user validation and creation in handle_deep_link function. Add logging for user creation and error handling for invalid Telegram IDs. Update unit tests to include user creation verification.

This commit is contained in:
2025-09-09 01:01:20 +03:00
parent 23c30a78e2
commit b1de709226
2 changed files with 21 additions and 0 deletions

View File

@@ -53,6 +53,12 @@ class TestStartHandlers:
# TODO: Реализовать тест
pass
def test_handle_deep_link_creates_user(self):
"""Тест что handle_deep_link создает пользователя"""
# TODO: Реализовать тест - проверить что при обработке deep link
# вызывается user_service.create_or_update_user
pass
def test_handle_deep_link_invalid(self):
"""Тест обработки невалидного deep link"""
# TODO: Реализовать тест