hermes-subagent-output-guide/tests/helpers.py
XLion c2a64be2ad
test: address all Codex test-review findings
- Fix Bandit B108: replace free-text # nosec with precise # nosec B108
  on all /tmp/ assertions (3 locations)
- Registration: add test for on_session_end hook registration
- Add end-to-end cleanup test: start → inject → cleanup → no injection
- Strengthen guidance assertions: verify key semantic phrases
- Conftest: remove unused autouse=True on plugin fixture
- Move make_child helper to tests/helpers.py
- Add concurrent read/write stress test (50 threads)
2026-06-26 00:24:51 +08:00

8 lines
277 B
Python

"""Test helpers for the subagent-output-guide test suite."""
from __future__ import annotations
def make_child(plugin, session_id: str = "child-1") -> None:
"""Register *session_id* as a known child session."""
plugin._on_subagent_start(child_session_id=session_id)