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:
@@ -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: Реализовать тест
|
||||
|
||||
Reference in New Issue
Block a user