(type: str, expected: bool)
| 55 | @pytest.mark.anyio |
| 56 | @pytest.mark.parametrize(("type", "expected"), [("message", True), ("notice", False)]) |
| 57 | async def test_message(type: str, expected: bool): |
| 58 | dependent = next(iter(MESSAGE.checkers)) |
| 59 | checker = dependent.call |
| 60 | |
| 61 | assert isinstance(checker, Message) |
| 62 | |
| 63 | event = make_fake_event(_type=type)() |
| 64 | assert await dependent(event=event) == expected |
| 65 | |
| 66 | |
| 67 | @pytest.mark.anyio |
nothing calls this directly
no test coverage detected