Files
cleveragents-core/features/environment.py
T

15 lines
429 B
Python

"""Behave environment setup for feature tests."""
from pathlib import Path
def before_all(context):
"""Set up test environment before all tests."""
# Use the actual Plandex repository if it exists
plandex_path = Path("/app/plandex")
if plandex_path.exists():
context.plandex_root = plandex_path
else:
# Tests will skip if Plandex directory doesn't exist
context.plandex_root = None