"""
Unit test fixtures and configuration.
"""

import pytest
import sys
import os
from pathlib import Path

# Add ws directory to Python path
ws_dir = Path(__file__).parent.parent.parent / 'ws'
if str(ws_dir) not in sys.path:
    sys.path.insert(0, str(ws_dir))

# Set working directory to ws for relative imports
os.chdir(str(ws_dir))

# Set test mode
os.environ['TEST_MODE'] = 'true'
os.environ['DB_NAME'] = 'lifesim_test'
