MCPcopy Index your code
hub / github.com/nonebot/nonebot2 / calling_api_hook1

Function calling_api_hook1

tests/test_adapters/test_bot.py:86–91  ·  view source on GitHub ↗
(bot: Bot, api: str, data: dict[str, Any])

Source from the content-addressed store, hash-verified

84 event = anyio.Event()
85
86 async def calling_api_hook1(bot: Bot, api: str, data: dict[str, Any]):
87 nonlocal runned1
88 runned1 = True
89 event.set()
90
91 raise MockApiException(1)
92
93 async def calling_api_hook2(bot: Bot, api: str, data: dict[str, Any]):
94 nonlocal runned2

Callers

nothing calls this directly

Calls 2

MockApiExceptionClass · 0.90
setMethod · 0.80

Tested by

no test coverage detected