Skip to content

The agent that grows with you

test(desktop): keep the packaged-launch test out of the signature probe

Brooklyn Nicholson6205ae1e1924
diff --git a/tests/hermes_cli/test_gui_command.py b/tests/hermes_cli/test_gui_command.py
index 03060478bca..1548024d849 100644
--- a/tests/hermes_cli/test_gui_command.py
+++ b/tests/hermes_cli/test_gui_command.py
@@ -199,6 +199,8 @@ def test_packaged_launch_opens_the_refreshed_installed_app(tmp_path, monkeypatch
monkeypatch.setattr("hermes_constants.get_default_hermes_root", lambda **kw: tmp_path) # root is its hermes-agent
monkeypatch.setattr(main_desktop, "_stage_macos_bundle_copy", lambda src, dst: shutil.copytree(src, dst, symlinks=True))
monkeypatch.setattr(main_desktop, "_running_macos_app_bundles", lambda: set())
+ # This pins the LAUNCH contract; the real codesign signature probe is out of scope here.
+ monkeypatch.setattr(cli_main.shutil, "which", lambda name: None)
monkeypatch.setattr(cli_main, "PROJECT_ROOT", root)
monkeypatch.setattr(main_desktop, "_desktop_launch_env", lambda args: ({}, []))
calls = []