From 196a06d0fecd155308f1249f313b68f73d77ed87 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Thu, 20 Aug 2026 03:54:40 -0700 Subject: [PATCH] test: pre-command hook stubs accept show_help(arg) after /help filter change --- tests/hermes_cli/test_pre_command_hook.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hermes_cli/test_pre_command_hook.py b/tests/hermes_cli/test_pre_command_hook.py index 616cc89270..47b7136311 100644 --- a/tests/hermes_cli/test_pre_command_hook.py +++ b/tests/hermes_cli/test_pre_command_hook.py @@ -118,7 +118,7 @@ def test_cli_fires_for_recognized_command(monkeypatch): monkeypatch.setattr(plugins_mod, "fire_pre_command_hook", _capture) inst = _make_cli() - inst.show_help = lambda: None + inst.show_help = lambda *a, **k: None assert inst.process_command("/help") is True assert captured["surface"] == "cli" @@ -158,7 +158,7 @@ def test_cli_passes_raw_args(monkeypatch): ) inst = _make_cli() - inst.show_help = lambda: None + inst.show_help = lambda *a, **k: None # /help ignores args but the payload must carry them raw (case kept). inst.process_command("/help Some RAW args") assert captured["args_raw"] == "Some RAW args" @@ -175,7 +175,7 @@ def test_cli_hook_before_handler(monkeypatch): ) inst = _make_cli() - inst.show_help = lambda: order.append("handler") + inst.show_help = lambda *a, **k: order.append("handler") inst.process_command("/help") assert order == ["hook", "handler"]