Skip to main content
Glama

GovInfo MCP Server

by Travis-Prall
test_config.py1.12 kB
"""pytest configuration for GovInfo MCP tests.""" import asyncio from collections.abc import Generator from pathlib import Path from loguru import logger import pytest # Configure test logging test_log_path = Path(__file__).parent / "test_logs" / "test.log" test_log_path.parent.mkdir(exist_ok=True) logger.add(test_log_path, rotation="10 MB", retention="1 week") @pytest.fixture(scope="session") def event_loop() -> Generator[asyncio.AbstractEventLoop, None, None]: """Create an instance of the default event loop for the test session. Yields: asyncio.AbstractEventLoop: The event loop for the test session. """ loop = asyncio.get_event_loop_policy().new_event_loop() yield loop loop.close() def pytest_configure(config: pytest.Config) -> None: """Configure pytest with custom markers. Args: config (pytest.Config): The pytest configuration object. """ config.addinivalue_line( "markers", "slow: marks tests as slow (deselect with '-m \"not slow\"')" ) config.addinivalue_line("markers", "integration: marks tests as integration tests")

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/Travis-Prall/govinfo-mcp'

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