The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: accept path= kwarg in global shutil.which stubs
Tekniumf98b223b58c4
diff --git a/tests/hermes_cli/test_post_setup_gating.py b/tests/hermes_cli/test_post_setup_gating.pyindex 778a2a683b3..dea16e42253 100644--- a/tests/hermes_cli/test_post_setup_gating.py+++ b/tests/hermes_cli/test_post_setup_gating.py@@ -21,7 +21,7 @@ class TestPostSetupGate:from hermes_cli import tools_configmonkeypatch.setenv("HERMES_HOME", str(tmp_path))- monkeypatch.setattr(tools_config.shutil, "which", lambda name: None)+ monkeypatch.setattr(tools_config.shutil, "which", lambda name, path=None: None)assert tools_config._toolset_needs_configuration_prompt("computer_use", {}@@ -36,7 +36,7 @@ class TestPostSetupGate:monkeypatch.setattr(tools_config.shutil,"which",- lambda name: "/usr/local/bin/cua-driver" if name == "cua-driver" else None,+ lambda name, path=None: "/usr/local/bin/cua-driver" if name == "cua-driver" else None,)assert tools_config._toolset_needs_configuration_prompt(diff --git a/tests/hermes_cli/test_setup_model_provider.py b/tests/hermes_cli/test_setup_model_provider.pyindex b9db444ddc7..b58d55d063d 100644--- a/tests/hermes_cli/test_setup_model_provider.py+++ b/tests/hermes_cli/test_setup_model_provider.py@@ -279,7 +279,7 @@ def test_setup_summary_marks_anthropic_auth_as_vision_available(tmp_path, monkeymonkeypatch.setenv("HERMES_HOME", str(tmp_path))_clear_provider_env(monkeypatch)monkeypatch.setenv("ANTHROPIC_API_KEY", "sk-ant-api03-key")- monkeypatch.setattr("shutil.which", lambda _name: None)+ monkeypatch.setattr("shutil.which", lambda _name, path=None: None)monkeypatch.setattr("agent.auxiliary_client.get_available_vision_backends", lambda: ["anthropic"])_print_setup_summary(load_config(), tmp_path)