(tmp_path)
| 33 | |
| 34 | |
| 35 | def 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 | |
| 42 | def test_parse_file_written_with_default_encoding(tmp_path, monkeypatch): |