import os def read_file(path): with open(path, "r", encoding="utf-8") as f: return f.read() def test_srt_to_kokoro_is_wrapper(): p = os.path.join("whisper_project", "srt_to_kokoro.py") txt = read_file(p) # should be a thin wrapper delegating to KokoroHttpClient assert "KokoroHttpClient" in txt assert "synthesize_from_srt" in txt def test_dub_and_burn_is_wrapper(): p = os.path.join("whisper_project", "dub_and_burn.py") txt = read_file(p) assert "KokoroHttpClient" in txt assert "FFmpegAudioProcessor" in txt def test_transcribe_prefers_adapter(): p = os.path.join("whisper_project", "transcribe.py") txt = read_file(p) # the transcribe script should try to import the FasterWhisper adapter assert "FasterWhisperTranscriber" in txt or "faster_whisper" in txt