Complete implementation of all modules: - constants.py: GIBS API endpoints, projections, TileMatrixSet defs - models.py: Pydantic models for layers, colormaps, geocoding - geo.py: Nominatim geocoding with rate limiting and caching - capabilities.py: WMTS GetCapabilities XML parser with search - colormaps.py: Colormap v1.3 parser with natural-language summaries - client.py: Async GIBS HTTP client wrapping all API interactions - server.py: FastMCP 3.0 tools, resources, and prompts 11 MCP tools, 3 resources, 2 prompts. 47 tests, all passing.
23 lines
475 B
Python
23 lines
475 B
Python
"""Shared fixtures for mcgibs tests."""
|
|
|
|
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
FIXTURES_DIR = Path(__file__).parent / "fixtures"
|
|
|
|
|
|
@pytest.fixture
|
|
def capabilities_xml() -> str:
|
|
return (FIXTURES_DIR / "capabilities_sample.xml").read_text()
|
|
|
|
|
|
@pytest.fixture
|
|
def colormap_xml() -> str:
|
|
return (FIXTURES_DIR / "colormap_sample.xml").read_text()
|
|
|
|
|
|
@pytest.fixture
|
|
def layer_metadata_json() -> str:
|
|
return (FIXTURES_DIR / "layer_metadata_sample.json").read_text()
|