graphiti/mcp_server/tests/conftest.py
Daniel Chalef ec49c1975e test: Add integration tests for HTTP/SSE transports and fix lint issues
- Created test_http_integration.py for HTTP/SSE transport testing
- Created test_mcp_transports.py for comprehensive transport tests
- Created test_stdio_simple.py for basic stdio validation
- Fixed all formatting and linting issues in test files
- All unit tests passing (5/5)
- Integration tests verify server connectivity with all transports

Note: Integration test clients have timing issues with MCP SDK,
but server logs confirm proper operation with all transports.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-30 08:50:48 -07:00

21 lines
475 B
Python

"""
Pytest configuration for MCP server tests.
This file prevents pytest from loading the parent project's conftest.py
"""
import sys
from pathlib import Path
import pytest
# Add src directory to Python path for imports
src_path = Path(__file__).parent.parent / 'src'
sys.path.insert(0, str(src_path))
from config.schema import GraphitiConfig # noqa: E402
@pytest.fixture
def config():
"""Provide a default GraphitiConfig for tests."""
return GraphitiConfig()