mirror of
https://github.com/xlionjuan/hermes-subagent-output-guide.git
synced 2026-11-16 22:37:50 +00:00
- 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)
8 lines
277 B
Python
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)
|