mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-13 18:10:47 +01:00
transcribe_fw.py is 302 lines against the cap and was untested. Tests land first, in their own commit, so the split that follows is verified against tests that predate the seam. 32 tests: argument parsing and its FW_* environment defaults, device and compute resolution, the progress line, the transcription loop, model loading, diarized output writing, and main()'s three exit paths. faster_whisper is reached only through _try_import, so patching that seam covers every path without the package installed. _format_progress_line is tested directly rather than through the loop - it is pure, so the percentage clamp, the ETA, and the suppression of an ETA longer than a day are each assertable without a model. The last coverage gap was _try_import itself, which every other test patches; it is now exercised directly in both directions. Split across three test files because a single pipeline module reached 321 lines - over the cap this work exists to clear. 275 tests pass in the directory, up from 243 by exactly the 32 added. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY |
||
|---|---|---|
| .. | ||
| .githooks | ||
| .github | ||
| C/atop_agg | ||
| docs | ||
| dwm | ||
| scripts | ||
| tests | ||
| zsh | ||
| .gitignore | ||
| install_core_system.sh | ||
| test_results.log | ||