The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(update): the post-swap ZIP tests' git-command fakes accept checkout_move
Tekniume3acdd1c87bb
diff --git a/tests/hermes_cli/test_update_zip_completion.py b/tests/hermes_cli/test_update_zip_completion.pyindex 0d9e699a032..f9ecb7d98e3 100644--- a/tests/hermes_cli/test_update_zip_completion.py+++ b/tests/hermes_cli/test_update_zip_completion.py@@ -253,7 +253,7 @@ def test_zip_build_failure_after_swap_is_a_followup(zip_update, monkeypatch, rouimport pmstate = zip_update- monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda: (route == "direct", ["git"], False))+ monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda **_: (route == "direct", ["git"], False))monkeypatch.setattr(main, "_warn_orphaned_update_autostashes", lambda *args: None)monkeypatch.setattr(update_cmd, "_should_zip_fallback_on_update_error", lambda exc: True)@@ -285,7 +285,7 @@ def test_zip_dependency_sync_failure_after_swap_is_a_followup(zip_update, monkeyfrom hermes_cli.venv_sync import completion_pending_pathstate = zip_update- monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda: (route == "direct", ["git"], False))+ monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda **_: (route == "direct", ["git"], False))monkeypatch.setattr(main, "_warn_orphaned_update_autostashes", lambda *args: None)monkeypatch.setattr(update_cmd, "_should_zip_fallback_on_update_error", lambda exc: True)@@ -324,7 +324,7 @@ def test_ctrl_c_after_the_swap_reports_the_new_code_not_a_failure(zip_update, mo# The tree is new, so the run is ``interrupted`` (never "failed" / "still on the previous# version") and the message says what is owed; a non-zero exit for an interrupt is fine.state = zip_update- monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda: (True, ["git"], False))+ monkeypatch.setattr(update_cmd, "_prepare_git_command", lambda **_: (True, ["git"], False))monkeypatch.setattr(main, "_warn_orphaned_update_autostashes", lambda *args: None)def interrupted(request):