Files
aitbc/apps/coordinator-api/tests/conftest.py
oib 65b63de56f docs: update README with comprehensive test results, CLI documentation, and enhanced feature descriptions
- Update key capabilities to include GPU marketplace, payments, billing, and governance
- Expand CLI section from basic examples to 12 command groups with 90+ subcommands
- Add detailed test results table showing 208 passing tests across 6 test suites
- Update documentation links to reference new CLI reference and coordinator API docs
- Revise test commands to reflect actual test structure (
2026-02-12 20:58:21 +01:00

18 lines
605 B
Python

"""Ensure coordinator-api src is on sys.path for all tests in this directory."""
import sys
from pathlib import Path
_src = str(Path(__file__).resolve().parent.parent / "src")
# Remove any stale 'app' module loaded from a different package so the
# coordinator 'app' resolves correctly.
_app_mod = sys.modules.get("app")
if _app_mod and hasattr(_app_mod, "__file__") and _app_mod.__file__ and _src not in str(_app_mod.__file__):
for key in list(sys.modules):
if key == "app" or key.startswith("app."):
del sys.modules[key]
if _src not in sys.path:
sys.path.insert(0, _src)