MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_reader_round_trips_writer_output

Function test_reader_round_trips_writer_output

tests/test_transcript.py:164–170  ·  view source on GitHub ↗
(tmp_path: Path)

Source from the content-addressed store, hash-verified

162
163
164def 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
173def test_reader_yields_nothing_when_file_missing(tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 3

TranscriptWriterClass · 0.90
TranscriptReaderClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected