The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: drop dead shutil.which patches in bot-chat delivery tests
teknium1173ccfe2dd0a
diff --git a/tests/cron/test_bot_chat_cli_home.py b/tests/cron/test_bot_chat_cli_home.pyindex 66e182c0f1d..dadcf5f9233 100644--- a/tests/cron/test_bot_chat_cli_home.py+++ b/tests/cron/test_bot_chat_cli_home.py@@ -43,7 +43,6 @@ def test_cli_keeps_discovered_home_when_launch_selection_changes(tmp_path, monkereturn subprocess.CompletedProcess(argv, 0, "", "")monkeypatch.setattr("tools.bot_live_delivery.find_canonical_live_owner", discover)- monkeypatch.setattr(delivery.shutil, "which", lambda _: "/bin/hermes")monkeypatch.setattr(delivery.subprocess, "run", run)try:assert delivery._deliver_to_bot_chat({"id": "job"}, "output", profile) is Nonediff --git a/tests/cron/test_bot_chat_pending_identity.py b/tests/cron/test_bot_chat_pending_identity.pyindex 748a01728f4..bdb044fdb88 100644--- a/tests/cron/test_bot_chat_pending_identity.py+++ b/tests/cron/test_bot_chat_pending_identity.py@@ -37,7 +37,6 @@ def test_deferred_destination_does_not_follow_root_changes(tmp_path, monkeypatchmonkeypatch.setattr("hermes_cli.profiles.get_profile_dir", lambda _: other)run = Mock(return_value=subprocess.CompletedProcess([], 0, "", ""))monkeypatch.setattr(delivery.subprocess, "run", run)- monkeypatch.setattr(delivery.shutil, "which", lambda _: "/bin/hermes")if recipient == "desktop":lease, refusal = try_acquire_active_session(session_id="chat", surface="desktop", config={}, registry_home=home,