From 9d139320d46b2e6f1df52f06eccdd37ff323efb7 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sun, 16 Aug 2026 20:32:35 -0700 Subject: [PATCH] test(plugins): accept scan_decision_cb in _install_plugin_core test stubs Sibling-test blast radius: main's TestInstallResolution fake_core stubs pin the old _install_plugin_core signature; the scanning feature adds the scan_decision_cb kwarg, so the real cmd_install call site now passes it. Widen the three stubs to accept it. --- tests/hermes_cli/test_plugin_index_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/hermes_cli/test_plugin_index_search.py b/tests/hermes_cli/test_plugin_index_search.py index d649d93575..5492b887ca 100644 --- a/tests/hermes_cli/test_plugin_index_search.py +++ b/tests/hermes_cli/test_plugin_index_search.py @@ -329,7 +329,7 @@ class TestInstallResolution: ) captured = {} - def fake_core(identifier, *, force, ref=None): + def fake_core(identifier, *, force, ref=None, scan_decision_cb=None): captured["identifier"] = identifier captured["ref"] = ref raise plugins_cmd.PluginOperationError("stop here") @@ -348,7 +348,7 @@ class TestInstallResolution: ) captured = {} - def fake_core(identifier, *, force, ref=None): + def fake_core(identifier, *, force, ref=None, scan_decision_cb=None): captured["ref"] = ref raise plugins_cmd.PluginOperationError("stop here") @@ -401,7 +401,7 @@ class TestInstallResolution: monkeypatch.setattr(plugin_index, "load_index", boom) captured = {} - def fake_core(identifier, *, force, ref=None): + def fake_core(identifier, *, force, ref=None, scan_decision_cb=None): captured["identifier"] = identifier captured["ref"] = ref raise plugins_cmd.PluginOperationError("stop here")