graphiti/mcp_server/tests/conftest.py
Daniel Chalef e5b20b9d37 fix: Apply formatting and linting fixes to MCP server tests
- Fixed import formatting in conftest.py
- Added noqa comment for late import required by path setup
- All ruff format and lint checks now pass
- All pytest tests pass successfully

🤖 Generated with Claude Code

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

21 lines
No EOL
474 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()