Skip to main content
Glama
test_server.py860 B
# tests/test_server.py import pytest from unittest.mock import patch, MagicMock, AsyncMock from loom_agent.server import extract_video_frames @pytest.mark.asyncio async def test_extract_frames_invalid_threshold(): """Test that invalid threshold returns error.""" result = await extract_video_frames( source="test.mp4", threshold=1.5, # Invalid: > 1.0 max_frames=10 ) assert result["status"] == "error" assert "threshold" in result["message"].lower() @pytest.mark.asyncio async def test_extract_frames_invalid_max_frames(): """Test that invalid max_frames returns error.""" result = await extract_video_frames( source="test.mp4", threshold=0.3, max_frames=0 # Invalid: must be > 0 ) assert result["status"] == "error" assert "max_frames" in result["message"].lower()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Slaycaster/loom-local-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server