Skip to content

The agent that grows with you

test(plugins): the --install-deps probe test patches venv_command, the seam cmd_validate reads

alt-glitchf20d7ff6228f
diff --git a/tests/hermes_cli/test_plugin_validate.py b/tests/hermes_cli/test_plugin_validate.py
index 68861d8eb00..8568f2457dc 100644
--- a/tests/hermes_cli/test_plugin_validate.py
+++ b/tests/hermes_cli/test_plugin_validate.py
@@ -500,6 +500,8 @@ def test_install_deps_probe_imports_from_the_synced_environment(tmp_path: Path,
synced_env = {**os.environ, "PYTHONPATH": os.pathsep.join([str(Path(__file__).resolve().parents[2]), str(deps)])}
monkeypatch.setattr(pm, "sync_venv", lambda **_kw: None)
monkeypatch.setattr(environments, "project_python", lambda _root: Path(sys.executable))
+ monkeypatch.setattr(environments, "selected_venv", lambda _root: tmp_path / "synced-venv")
+ monkeypatch.setattr(environments, "venv_command", lambda _root, _venv, options=(): [sys.executable, *options])
monkeypatch.setattr(environments, "activation_environment", lambda _root: synced_env)
try: