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

Function calling_api_hook2

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

Source from the content-addressed store, hash-verified

91 raise MockApiException(1)
92
93 async def calling_api_hook2(bot: Bot, api: str, data: dict[str, Any]):
94 nonlocal runned2
95 runned2 = True
96 with anyio.fail_after(1):
97 await event.wait()
98
99 raise MockApiException(2)
100
101 hooks = set()
102

Callers

nothing calls this directly

Calls 2

MockApiExceptionClass · 0.90
waitMethod · 0.80

Tested by

no test coverage detected