(bot: Bot, api: str, data: dict[str, Any])
| 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 |
nothing calls this directly
no test coverage detected