Skip to main content
Glama
conftest.py930 B
import pytest import tempfile from pathlib import Path @pytest.fixture def temp_file(): """Create a temporary file path for testing""" with tempfile.NamedTemporaryFile(mode="w", suffix=".xml", delete=False) as f: temp_path = f.name yield temp_path # Cleanup Path(temp_path).unlink(missing_ok=True) @pytest.fixture def complete_xml_path(): """Path to the complete.xml test file""" return Path(__file__).parent / "resources" / "complete.xml" @pytest.fixture def incomplete_xml_path(): """Path to the incomplete.xml test file""" return Path(__file__).parent / "resources" / "incomplete.xml" @pytest.fixture def mixed_xml_path(): """Path to the mixed.xml test file""" return Path(__file__).parent / "resources" / "mixed.xml" @pytest.fixture def unicode_xml_path(): """Path to the unicode.xml test file""" return Path(__file__).parent / "resources" / "unicode.xml"

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/mozhaa/hnpx-sdk'

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