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