Skip to content

The agent that grows with you

test(plugins): pin the PM seams pack install and discovery actually use

ethernete551413a5ac2
diff --git a/tests/hermes_cli/test_plugin_manifest_v2.py b/tests/hermes_cli/test_plugin_manifest_v2.py
index e6ffff0769b..1cd59bfaa4e 100644
--- a/tests/hermes_cli/test_plugin_manifest_v2.py
+++ b/tests/hermes_cli/test_plugin_manifest_v2.py
@@ -350,7 +350,7 @@ class TestPythonDependenciesSeam:
mgr.discover_and_load()
assert mgr._plugins["pipful"].enabled
assert "definitely-not-a-real-package-64165" in caplog.text
- assert "pip install" in caplog.text
+ assert "hermes pm repair" in caplog.text
assert calls == []
def test_satisfied_pip_dep_is_quiet(self, hermes_home, caplog):
diff --git a/tests/hermes_cli/test_plugin_packs.py b/tests/hermes_cli/test_plugin_packs.py
index 69daa4450d8..5a15727c363 100644
--- a/tests/hermes_cli/test_plugin_packs.py
+++ b/tests/hermes_cli/test_plugin_packs.py
@@ -253,10 +253,7 @@ def _fanout_patches(install_side_effect, consent_mock=None):
patches = {
"_install_plugin_core": mock.MagicMock(side_effect=install_side_effect),
"_prompt_plugin_env_vars": mock.MagicMock(),
- "_get_enabled_set": mock.MagicMock(return_value=set()),
- "_get_disabled_set": mock.MagicMock(return_value=set()),
- "_save_enabled_set": mock.MagicMock(),
- "_save_disabled_set": mock.MagicMock(),
+ "_set_plugin_enabled": mock.MagicMock(),
"_run_capability_consent": consent_mock or mock.MagicMock(return_value=True),
"_declared_capabilities_from_manifest": mock.MagicMock(
side_effect=lambda manifest, name: manifest.get("capabilities", [])