mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-18 04:41:56 +00:00
test(e2e): fix Discord mock exception surface
This commit is contained in:
parent
4695d2716f
commit
ad7d3bc84c
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ def _ensure_discord_mock():
|
||||||
discord_mod.DMChannel = type("DMChannel", (), {})
|
discord_mod.DMChannel = type("DMChannel", (), {})
|
||||||
discord_mod.Thread = type("Thread", (), {})
|
discord_mod.Thread = type("Thread", (), {})
|
||||||
discord_mod.ForumChannel = type("ForumChannel", (), {})
|
discord_mod.ForumChannel = type("ForumChannel", (), {})
|
||||||
|
discord_mod.Forbidden = type("Forbidden", (Exception,), {})
|
||||||
|
discord_mod.MessageType = SimpleNamespace(default=0, reply=19)
|
||||||
|
discord_mod.Object = lambda *, id: SimpleNamespace(id=id)
|
||||||
discord_mod.Interaction = object
|
discord_mod.Interaction = object
|
||||||
discord_mod.app_commands = SimpleNamespace(
|
discord_mod.app_commands = SimpleNamespace(
|
||||||
describe=lambda **kwargs: (lambda fn: fn),
|
describe=lambda **kwargs: (lambda fn: fn),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue