(tmp_path)
| 25 | |
| 26 | |
| 27 | def 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 | |
| 35 | def test_parse_pathlib(tmp_path): |