fix: make transcription tests independent of FFmpeg

This commit is contained in:
Meghdad committed 2026-08-04 22:59:43 +03:30
1 parent 8f43e682c4
commit 3a588c767e
2 files changed
+7 -4

No files matched your search

+3 -1
View File
@@ -6,6 +6,7 @@ import sys
import tempfile
import unittest
from pathlib import Path
from unittest.mock import patch
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
@@ -102,7 +103,8 @@ class TranscriptionTests(unittest.TestCase):
def test_success_updates_artifacts_manifest_and_resumes(self) -> None:
self.write_course(["lesson.mp4"])
model = FakeModel()
result = self.transcriber(model).run()
with patch("ravin.transcribe.shutil.which", return_value=None):
result = self.transcriber(model).run()
self.assertEqual(result.exit_code, 0)
self.assertEqual(result.succeeded, 1)