"""
Pytest configuration for BrighterTrading tests.

This module sets up the Python path to include the src directory,
allowing tests to import modules with or without the 'src.' prefix.
"""
import sys
from pathlib import Path

# Add project root to Python path (for 'from src.X import Y' style)
project_root = Path(__file__).parent.parent
if str(project_root) not in sys.path:
    sys.path.insert(0, str(project_root))

# Add src directory to Python path (for 'from X import Y' style)
src_path = project_root / 'src'
if str(src_path) not in sys.path:
    sys.path.insert(0, str(src_path))
