Files
cleveragents-core/tests/auto_agents/controller/conftest.py
T
drew 0bc734c020 style: ruff format the controller-state-machine branch (288 files)
Applies `ruff format` to the accumulated formatting debt on this branch.
Formatting-only — no behavioral changes. Required for CI/lint's format
gate (`nox -s format -- --check`), which the branch was failing on 288
tracked files that drifted from ruff's canonical style.

In-progress WIP files are intentionally excluded so this commit stays a
clean formatting-only diff.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 00:09:17 -04:00

22 lines
735 B
Python

"""Test-collection setup for the controller test subdir.
The controller code lives in ``tools/controller/`` as a proper Python
package (``__init__.py`` everywhere). To import it as
``from tools.controller.contracts.v1 import …``, the repo root must
be on ``sys.path``. Older tests under ``tests/auto_agents/`` use
``load_tool_module()`` from the parent conftest because they load
loose ``tools/*.py`` scripts that aren't part of a package; controller
tests bypass that and import normally.
"""
from __future__ import annotations
import os
import sys
_REPO_ROOT = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
)
if _REPO_ROOT not in sys.path:
sys.path.insert(0, _REPO_ROOT)