test(feishu): cover new SDK event handler registrations

Extends test_build_event_handler_registers_reaction_and_card_processors
to assert that register_p2_im_chat_access_event_bot_p2p_chat_entered_v1
and register_p2_im_message_recalled_v1 are called when building the
event handler, matching the production registrations.

Also adds Fatty911 to scripts/release.py AUTHOR_MAP for credit on the
salvaged event-handler fix.
This commit is contained in:
Teknium
2026-04-16 21:40:35 -07:00
committed by Teknium
parent 94168b7f60
commit 816e3e3774
2 changed files with 11 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ AUTHOR_MAP = {
"137614867+cutepawss@users.noreply.github.com": "cutepawss", "137614867+cutepawss@users.noreply.github.com": "cutepawss",
"96793918+memosr@users.noreply.github.com": "memosr", "96793918+memosr@users.noreply.github.com": "memosr",
"milkoor@users.noreply.github.com": "milkoor", "milkoor@users.noreply.github.com": "milkoor",
"xuerui911@gmail.com": "Fatty911",
"131039422+SHL0MS@users.noreply.github.com": "SHL0MS", "131039422+SHL0MS@users.noreply.github.com": "SHL0MS",
"77628552+raulvidis@users.noreply.github.com": "raulvidis", "77628552+raulvidis@users.noreply.github.com": "raulvidis",
"145567217+Aum08Desai@users.noreply.github.com": "Aum08Desai", "145567217+Aum08Desai@users.noreply.github.com": "Aum08Desai",

View File

@@ -639,6 +639,14 @@ class TestAdapterBehavior(unittest.TestCase):
calls.append("bot_deleted") calls.append("bot_deleted")
return self return self
def register_p2_im_chat_access_event_bot_p2p_chat_entered_v1(self, _handler):
calls.append("p2p_chat_entered")
return self
def register_p2_im_message_recalled_v1(self, _handler):
calls.append("message_recalled")
return self
def build(self): def build(self):
calls.append("build") calls.append("build")
return "handler" return "handler"
@@ -664,6 +672,8 @@ class TestAdapterBehavior(unittest.TestCase):
"card_action", "card_action",
"bot_added", "bot_added",
"bot_deleted", "bot_deleted",
"p2p_chat_entered",
"message_recalled",
"build", "build",
], ],
) )