MCPcopy Create free account
hub / github.com/Delgan/loguru / test_parse_bytes

Function test_parse_bytes

tests/test_parse.py:83–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def test_parse_bytes():
84 with io.BytesIO(b"Testing bytes!") as fileobj:
85 result, *_ = list(logger.parse(fileobj, rb"(?P<ponct>[?!:])"))
86 assert result == dict(ponct=b"!")
87
88
89@pytest.mark.parametrize("chunk", [-1, 1, 2**16])

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected