(type: str, expected: bool)
| 79 | @pytest.mark.anyio |
| 80 | @pytest.mark.parametrize(("type", "expected"), [("message", False), ("request", True)]) |
| 81 | async def test_request(type: str, expected: bool): |
| 82 | dependent = next(iter(REQUEST.checkers)) |
| 83 | checker = dependent.call |
| 84 | |
| 85 | assert isinstance(checker, Request) |
| 86 | |
| 87 | event = make_fake_event(_type=type)() |
| 88 | assert await dependent(event=event) == expected |
| 89 | |
| 90 | |
| 91 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected