MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / test_video

Function test_video

tests/test_models.py:143–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 logger.info(f"| --------------------------------------------------")
142
143async def test_video():
144 logger.info(f"| --------------------------------------------------")
145 logger.info(f"| Testing video with different models")
146 models = [
147 "openrouter/gemini-2.5-flash",
148 # "google/gemini-2.5-flash",
149 ]
150
151 messages = [
152 SystemMessage(content="You are a helpful assistant."),
153 HumanMessage(content=[
154 ContentPartText(text="Please analyze the video and provide the analysis. Only return the analysis, no other text or formatting."),
155 ContentPartVideo(video_url=VideoURL(url=make_file_url(file_path="tests/files/video.MOV"))),
156 ]),
157 ]
158
159 for model in models:
160 logger.info(f"| Testing {model}")
161 response = await model_manager(model=model, messages=messages)
162 logger.info(f"| {model} Response: {json.dumps(response.model_dump(), indent=4)}")
163 logger.info(f"| --------------------------------------------------")
164
165
166async def test_pdf():

Callers

nothing calls this directly

Calls 8

SystemMessageClass · 0.90
HumanMessageClass · 0.90
ContentPartTextClass · 0.90
ContentPartVideoClass · 0.90
VideoURLClass · 0.90
make_file_urlFunction · 0.90
infoMethod · 0.45
model_dumpMethod · 0.45

Tested by

no test coverage detected