(app: App, type: str, user_id: str, expected: bool)
| 114 | ], |
| 115 | ) |
| 116 | async def test_superuser(app: App, type: str, user_id: str, expected: bool): |
| 117 | dependent = next(iter(SUPERUSER.checkers)) |
| 118 | checker = dependent.call |
| 119 | |
| 120 | assert isinstance(checker, SuperUser) |
| 121 | |
| 122 | event = make_fake_event(_type=type, _user_id=user_id)() |
| 123 | |
| 124 | async with app.test_api() as ctx: |
| 125 | bot = ctx.create_bot() |
| 126 | assert await dependent(bot=bot, event=event) == expected |
| 127 | |
| 128 | |
| 129 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected