(
tmp_path: pathlib.Path, output_format: OutputFormat, output_text: str
)
| 30 | ], |
| 31 | ) |
| 32 | def 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() |
nothing calls this directly
no test coverage detected