MCPcopy
hub / github.com/chidiwilliams/buzz / test_write_output

Function test_write_output

tests/transcriber/transcriber_test.py:32–43  ·  view source on GitHub ↗
(
    tmp_path: pathlib.Path, output_format: OutputFormat, output_text: str
)

Source from the content-addressed store, hash-verified

30 ],
31)
32def test_write_output(
33 tmp_path: pathlib.Path, output_format: OutputFormat, output_text: str
34):
35 output_file_path = tmp_path / "whisper.txt"
36 segments = [Segment(40, 299, "Bien"), Segment(299, 329, "venue dans")]
37
38 write_output(
39 path=str(output_file_path), segments=segments, output_format=output_format
40 )
41
42 with open(output_file_path, encoding="utf-8") as output_file:
43 assert output_text == output_file.read()

Callers

nothing calls this directly

Calls 2

SegmentClass · 0.90
write_outputFunction · 0.90

Tested by

no test coverage detected