(tmp_path: Path)
| 162 | |
| 163 | |
| 164 | def test_reader_round_trips_writer_output(tmp_path: Path) -> None: |
| 165 | path = tmp_path / "x.jsonl" |
| 166 | with TranscriptWriter(path) as w: |
| 167 | w.append({"a": 1}) |
| 168 | w.append({"b": 2}) |
| 169 | items = list(TranscriptReader(path)) |
| 170 | assert items == [{"a": 1}, {"b": 2}] |
| 171 | |
| 172 | |
| 173 | def test_reader_yields_nothing_when_file_missing(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected