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

Function test_parse_pathlib

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

Source from the content-addressed store, hash-verified

33
34
35def test_parse_pathlib(tmp_path):
36 file = tmp_path / "test.log"
37 file.write_text(TEXT)
38 result, *_ = list(logger.parse(pathlib.Path(str(file)), r"(?P<r>Random)"))
39 assert result == dict(r="Random")
40
41
42def test_parse_file_written_with_default_encoding(tmp_path, monkeypatch):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected