From 0076f3d9ab1a2a0ede2e7e2e1f11447d0328b6fc Mon Sep 17 00:00:00 2001 From: Hermes Bot Date: Sat, 2 May 2026 19:35:42 +0000 Subject: [PATCH] test(bootstrap): widen ensure_python_has_webui_deps stub for rebase onto v0.50.269 The PR added an `agent_dir` parameter to ensure_python_has_webui_deps. The test_bootstrap_foreground.py tests (added in #1478) had `lambda p: p` stubs that were 1-arg only. Widened to `lambda *a, **kw: a[0]` so the stubs accept the new signature on the rebased base. Co-authored-by: ccqqlo --- tests/test_bootstrap_foreground.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_bootstrap_foreground.py b/tests/test_bootstrap_foreground.py index 7b7ed8c6..da9468ca 100644 --- a/tests/test_bootstrap_foreground.py +++ b/tests/test_bootstrap_foreground.py @@ -235,7 +235,7 @@ class TestMainForegroundRouting: monkeypatch.setattr(bs, "discover_agent_dir", lambda: tmp_path / "agent") monkeypatch.setattr(bs, "hermes_command_exists", lambda: True) monkeypatch.setattr(bs, "discover_launcher_python", lambda *a: "/usr/bin/python3") - monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda p: p) + monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda *a, **kw: a[0]) monkeypatch.setattr(bs, "wait_for_health", lambda *a, **kw: True) monkeypatch.setattr(bs, "open_browser", lambda *a, **kw: None) monkeypatch.setenv("HERMES_WEBUI_STATE_DIR", str(tmp_path / "state")) @@ -354,7 +354,7 @@ class TestForegroundEnvAndCwd: monkeypatch.setattr(bs, "discover_agent_dir", lambda: agent_dir) monkeypatch.setattr(bs, "hermes_command_exists", lambda: True) monkeypatch.setattr(bs, "discover_launcher_python", lambda *a: "/usr/bin/python3") - monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda p: p) + monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda *a, **kw: a[0]) monkeypatch.setattr(bs, "wait_for_health", lambda *a, **kw: True) monkeypatch.setattr(bs, "open_browser", lambda *a, **kw: None) # State-dir + every var we care about is captured. @@ -437,7 +437,7 @@ class TestForegroundExecutabilityGuard: monkeypatch.setattr(bs, "discover_agent_dir", lambda: agent_dir) monkeypatch.setattr(bs, "hermes_command_exists", lambda: True) monkeypatch.setattr(bs, "discover_launcher_python", lambda *a: str(bad_python)) - monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda p: p) + monkeypatch.setattr(bs, "ensure_python_has_webui_deps", lambda *a, **kw: a[0]) monkeypatch.setenv("HERMES_WEBUI_STATE_DIR", str(tmp_path / "state")) return bs