File size: 503 Bytes
255cbd1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""
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))


@pytest.fixture(scope="session")
def test_data_dir():
    """Get test data directory path"""
    return Path(__file__).parent / "fixtures"


@pytest.fixture(scope="session")
def temp_storage_dir(tmp_path_factory):
    """Create temporary storage directory for tests"""
    return tmp_path_factory.mktemp("storage")