(
app: App, session_ids: tuple[str, ...], session_id: str | None, expected: bool
)
| 136 | ], |
| 137 | ) |
| 138 | async def test_user( |
| 139 | app: App, session_ids: tuple[str, ...], session_id: str | None, expected: bool |
| 140 | ): |
| 141 | dependent = next(iter(USER(*session_ids).checkers)) |
| 142 | checker = dependent.call |
| 143 | |
| 144 | assert isinstance(checker, User) |
| 145 | |
| 146 | event = make_fake_event(_session_id=session_id)() |
| 147 | |
| 148 | async with app.test_api() as ctx: |
| 149 | bot = ctx.create_bot() |
| 150 | assert await dependent(bot=bot, event=event) == expected |
nothing calls this directly
no test coverage detected