| """ | |
| Pytest configuration and shared fixtures. | |
| """ | |
| import sys | |
| from pathlib import Path | |
| # Add project root to Python path | |
| project_root = Path(__file__).parent.parent | |
| sys.path.insert(0, str(project_root)) | |
| def pytest_configure(config): | |
| """Configure pytest.""" | |
| # Add custom markers | |
| config.addinivalue_line( | |
| "markers", "integration: mark test as integration test (may be slow)" | |
| ) | |
| config.addinivalue_line( | |
| "markers", "api: mark test as API test (requires server components)" | |
| ) | |
| config.addinivalue_line( | |
| "markers", "unit: mark test as unit test (fast, isolated)" | |
| ) | |