(
bot: Bot,
exception: Exception | None,
api: str,
data: dict[str, Any],
result: Any,
)
| 213 | raise MockApiException(1) |
| 214 | |
| 215 | async def called_api_hook2( |
| 216 | bot: Bot, |
| 217 | exception: Exception | None, |
| 218 | api: str, |
| 219 | data: dict[str, Any], |
| 220 | result: Any, |
| 221 | ): |
| 222 | nonlocal runned2 |
| 223 | runned2 = True |
| 224 | with anyio.fail_after(1): |
| 225 | await event.wait() |
| 226 | |
| 227 | raise MockApiException(2) |
| 228 | |
| 229 | hooks = set() |
| 230 |
nothing calls this directly
no test coverage detected