import sys from pathlib import Path # Add the parent directory to Python path so tests can import modules sys.path.insert(0, str(Path(__file__).parent.parent))