Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: ffmpg dependency issue in cicd test (#3865)

Wendong-Faned399de23e06
diff --git a/test/toolkits/test_video_download_function.py b/test/toolkits/test_video_download_function.py
index 9db601451..842d0b046 100644
--- a/test/toolkits/test_video_download_function.py
+++ b/test/toolkits/test_video_download_function.py
@@ -33,6 +33,7 @@ def mock_downloader():
with (
patch("builtins.open", mock_open(read_data=b"test")),
patch("yt_dlp.YoutubeDL") as mock_youtube_dl,
+ patch("shutil.which", return_value="/usr/bin/ffmpeg"),
patch('tempfile.mkdtemp') as mock_mkdtemp,
patch('pathlib.Path.mkdir'),
patch('ffmpeg.input') as mock_ffmpeg_input,