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

Function test_parse_fileobj

tests/test_parse.py:27–32  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

25
26
27def test_parse_fileobj(tmp_path):
28 file = tmp_path / "test.log"
29 file.write_text(TEXT)
30 with open(str(file)) as fileobj:
31 result, *_ = list(logger.parse(fileobj, r"^(?P<t>\w+)"))
32 assert result == dict(t="This")
33
34
35def test_parse_pathlib(tmp_path):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected