"""Behave test environment setup.""" import sys from pathlib import Path def before_all(context): """Set up test environment.""" project_root = Path(__file__).parent.parent src_path = project_root / "src" if str(src_path) not in sys.path: sys.path.insert(0, str(src_path)) context.project_root = project_root def before_scenario(context, _scenario): """Reset context before each scenario.""" context.runner = None context.result = None