Add test_transitions.py (recorder idempotency under replay, terminal close, fail-soft, the B4 _instrument signature-preservation guarantee, end-to-end graph drive), test_topology.py (meta coverage, tree grouping, edge classification, phase->node map), and test_dashboard.py (/api/state contract + per-node state, /api/topology, /api/task timeline+cost+partial+thread_id validation, all via TestClient, fastapi-skipif guarded). Rework test_status_page.py to the data layer (drop retired render_html/SVG tests). conftest exposes tests/ for sibling imports. Frontend: Vitest+RTL for layout, TaskList filters/selection, TaskDrawer timeline.
19 lines
681 B
Python
19 lines
681 B
Python
"""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))
|