import os import subprocess import tempfile def test_run_full_pipeline_dry_run_outputs_steps(): # create a dummy video file so the CLI accepts the path import pathlib with tempfile.TemporaryDirectory() as td: vid = pathlib.Path(td) / "example.mp4" vid.write_bytes(b"") env = os.environ.copy() env["PYTHONPATH"] = os.getcwd() cmd = [ "python", "whisper_project/run_full_pipeline.py", "--video", str(vid), "--dry-run", "--translate-method", "none", ] p = subprocess.run(cmd, env=env, capture_output=True, text=True) out = p.stdout + p.stderr assert p.returncode == 0 assert "[dry-run]" in out assert "VĂ­deo final" in out or "Video final" in out