import os import sys # Add the project root directory to Python path # This allows the tests to import the project sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))