| """ | |
| Pytest configuration and shared fixtures | |
| """ | |
| import os | |
| import sys | |
| import pytest | |
| from pathlib import Path | |
| # Add backend to path | |
| sys.path.insert(0, str(Path(__file__).parent.parent)) | |
| def test_data_dir(): | |
| """Get test data directory path""" | |
| return Path(__file__).parent / "fixtures" | |
| def temp_storage_dir(tmp_path_factory): | |
| """Create temporary storage directory for tests""" | |
| return tmp_path_factory.mktemp("storage") | |