This repository has been archived on 2026-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
orchestrator/agent-team/tests/conftest.py

20 lines
681 B
Python
Raw Normal View History

"""Pytest configuration: make the ``agent_team`` package importable.
Adds the ``agent-team/`` project root (the directory containing the
``agent_team`` package) to ``sys.path`` so tests can run without an editable
install.
"""
import sys
from pathlib import Path
_PROJECT_ROOT = Path(__file__).resolve().parents[1]
if str(_PROJECT_ROOT) not in sys.path:
sys.path.insert(0, str(_PROJECT_ROOT))
# Also expose the tests/ dir so a test module can import shared helpers from a
# sibling test module by bare name (e.g. ``from test_status_page import ...``).
_TESTS_DIR = Path(__file__).resolve().parent
if str(_TESTS_DIR) not in sys.path:
sys.path.insert(0, str(_TESTS_DIR))