The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): the borrowed-home tail fixture patches the custody spawn
Teknium1199506a80a4
diff --git a/tests/hermes_cli/test_borrowed_home_launch.py b/tests/hermes_cli/test_borrowed_home_launch.pyindex 4789ee25a99..815705afd8d 100644--- a/tests/hermes_cli/test_borrowed_home_launch.py+++ b/tests/hermes_cli/test_borrowed_home_launch.py@@ -8,6 +8,7 @@ dependency sync leaves.from __future__ import annotationsimport json+import subprocessfrom pathlib import Pathimport sys@@ -30,8 +31,12 @@ def _no_tool_downloads(monkeypatch):@pytest.fixturedef completion_tail(monkeypatch):+ """Record the completion child instead of running it (the tail spawns via update_custody.run)."""+ from hermes_cli import update_custody+spawned: list = []- monkeypatch.setattr(venv_sync.subprocess, "call", lambda command, **kw: spawned.append(command) or 0)+ monkeypatch.setattr(update_custody, "run", lambda command, **kw: spawned.append(command)+ or subprocess.CompletedProcess(command, 0))return spawned