test+release: stub auth in test_telegram_documents fixture; map @kiranvk-2011

This commit is contained in:
Teknium
2026-05-18 22:37:23 -07:00
parent 77c4675a50
commit 1d378605dd
2 changed files with 6 additions and 0 deletions

View File

@@ -134,6 +134,11 @@ def adapter():
a = TelegramAdapter(config)
# Capture events instead of processing them
a.handle_message = AsyncMock()
# After PR #28494 made the empty-allowlist callback auth fail-closed
# (and #28492 wired _is_callback_user_authorized into _should_process_message),
# document-routing tests need to bypass the new gate so messages from fake
# senders reach handle_message.
a._is_callback_user_authorized = lambda user_id, **_kw: True
return a