test+release: stub auth in channel_posts fixture; map @brndnsvr

This commit is contained in:
Teknium 2026-05-18 22:51:30 -07:00
parent 84a9b81502
commit f1cefad8c2
2 changed files with 7 additions and 1 deletions

View file

@ -187,6 +187,7 @@ AUTHOR_MAP = {
"psikonetik@gmail.com": "el-analista", # PR #25368 salvage (cron topic fallback report)
"75435655+khungate@users.noreply.github.com": "khungate", # PR #25829 salvage (gmail-triage gt: callbacks)
"stevehq26-bot@users.noreply.github.com": "stevehq26-bot", # PR #28015 salvage (quick-command-only menus)
"seaverb@icloud.com": "brndnsvr", # PR #25327 salvage (channel post updates)
"282919977+eliteworkstation94-ai@users.noreply.github.com": "eliteworkstation94-ai", # PR #28157 salvage (group reply session splits)
"androidhtml@yandex.com": "hllqkb",
"25840394+Bongulielmi@users.noreply.github.com": "Bongulielmi",

View file

@ -90,7 +90,12 @@ def telegram_adapter_cls(monkeypatch):
def _make_adapter(telegram_adapter_cls):
return telegram_adapter_cls(PlatformConfig(enabled=True, token="***", extra={}))
a = telegram_adapter_cls(PlatformConfig(enabled=True, token="***", extra={}))
# Channel posts have from_user=None. After PR #28494's fail-closed
# auth, the empty-allowlist adapter rejects all messages including
# channel posts. These tests focus on routing, not auth gating.
a._is_callback_user_authorized = lambda user_id, **_kw: True
return a
def _make_channel_message(text="channel id test @hermes_bot"):