Skip to main content
Glama
test_timing.py926 B
"""Tests for timing tools.""" from fastmcp.client import Client async def test_delay_default(client: Client): """Test delay tool with default 1 second.""" result = await client.call_tool("delay", {}) assert result.data["requested_delay"] == 1.0 assert result.data["actual_delay"] == 1.0 assert result.data["capped"] is False async def test_delay_custom(client: Client): """Test delay tool with custom duration.""" result = await client.call_tool("delay", {"seconds": 0.1}) assert result.data["requested_delay"] == 0.1 assert result.data["actual_delay"] == 0.1 assert result.data["capped"] is False async def test_delay_capped(client: Client): """Test delay tool caps at maximum.""" result = await client.call_tool("delay", {"seconds": 6}) assert result.data["requested_delay"] == 6 assert result.data["actual_delay"] == 3 assert result.data["capped"] is True

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/bugffet/mcpbin'

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