Skip to content

Commit 978aa22

Browse files
Remove unnecessary tests
1 parent 392f57f commit 978aa22

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

interactive_ai/data_migration/tests/scripts/test_convert_vfr_videos_to_cfr.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -320,30 +320,6 @@ def test_extract_all_frames_success(self, fxt_temp_frames_dir):
320320
result = ConvertVFRVideosToCFR._extract_all_frames("input_video.mp4", fxt_temp_frames_dir)
321321
assert result is True
322322

323-
def test_extract_all_frames_failure(self, fxt_temp_frames_dir):
324-
"""Test _extract_all_frames method with ffmpeg failure"""
325-
mock_process = Mock()
326-
mock_process.returncode = 1
327-
mock_process.stderr = "FFmpeg error"
328-
329-
with (
330-
patch("subprocess.run", return_value=mock_process),
331-
patch("os.makedirs"),
332-
):
333-
result = ConvertVFRVideosToCFR._extract_all_frames("input_video.mp4", fxt_temp_frames_dir)
334-
assert result is False
335-
336-
def test_extract_all_frames_timeout(self, fxt_temp_frames_dir):
337-
"""Test _extract_all_frames method with timeout"""
338-
import subprocess
339-
340-
with (
341-
patch("subprocess.run", side_effect=subprocess.TimeoutExpired("ffmpeg", 1200)),
342-
patch("os.makedirs"),
343-
):
344-
result = ConvertVFRVideosToCFR._extract_all_frames("input_video.mp4", fxt_temp_frames_dir)
345-
assert result is False
346-
347323
def test_stitch_frames_to_cfr_video_success(self, fxt_temp_frames_dir, fxt_temp_video_file):
348324
"""Test _stitch_frames_to_cfr_video method successful stitching"""
349325
mock_process = Mock()

0 commit comments

Comments
 (0)