mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
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:
parent
94168b7f60
commit
816e3e3774
2 changed files with 11 additions and 0 deletions
|
|
@ -54,6 +54,7 @@ AUTHOR_MAP = {
|
|||
"137614867+cutepawss@users.noreply.github.com": "cutepawss",
|
||||
"96793918+memosr@users.noreply.github.com": "memosr",
|
||||
"milkoor@users.noreply.github.com": "milkoor",
|
||||
"xuerui911@gmail.com": "Fatty911",
|
||||
"131039422+SHL0MS@users.noreply.github.com": "SHL0MS",
|
||||
"77628552+raulvidis@users.noreply.github.com": "raulvidis",
|
||||
"145567217+Aum08Desai@users.noreply.github.com": "Aum08Desai",
|
||||
|
|
|
|||
|
|
@ -639,6 +639,14 @@ class TestAdapterBehavior(unittest.TestCase):
|
|||
calls.append("bot_deleted")
|
||||
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):
|
||||
calls.append("build")
|
||||
return "handler"
|
||||
|
|
@ -664,6 +672,8 @@ class TestAdapterBehavior(unittest.TestCase):
|
|||
"card_action",
|
||||
"bot_added",
|
||||
"bot_deleted",
|
||||
"p2p_chat_entered",
|
||||
"message_recalled",
|
||||
"build",
|
||||
],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue