Skip to main content
Glama
conftest.py671 B
"""Pytest configuration and fixtures for the test suite.""" from unittest.mock import patch import pytest from httpx import AsyncClient @pytest.fixture def mock_httpx_client(): """Fixture to mock httpx.AsyncClient.""" with patch("httpx.AsyncClient") as mock_client: yield mock_client @pytest.fixture def test_client(server_module): """Fixture to create a test client for the FastMCP server.""" from httpx import ASGITransport app = server_module.mcp.streamable_http_app() transport = ASGITransport(app=app) return AsyncClient(transport=transport, base_url="http://test") # Add any other common test utilities or fixtures here

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/jairosoft-com/mcp-server-python-template'

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