From 72118b049fc41a5a6e0b83082b77c438aba5c9e7 Mon Sep 17 00:00:00 2001 From: alt-glitch Date: Wed, 10 Jun 2026 22:09:43 +0530 Subject: [PATCH] tests(cli): align tui argv prebuild test with the node-probe launcher --- tests/hermes_cli/test_tui_resume_flow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/hermes_cli/test_tui_resume_flow.py b/tests/hermes_cli/test_tui_resume_flow.py index 022df0dc8ff..866912a6c2c 100644 --- a/tests/hermes_cli/test_tui_resume_flow.py +++ b/tests/hermes_cli/test_tui_resume_flow.py @@ -1044,6 +1044,10 @@ def test_make_tui_argv_dev_prebuilds_hermes_ink(monkeypatch, main_mod, tmp_path) monkeypatch.setattr(main_mod, "_tui_need_npm_install", lambda _tui_dir: False) monkeypatch.delenv("HERMES_TUI_DIR", raising=False) monkeypatch.setattr(main_mod.shutil, "which", lambda bin_name: f"/usr/bin/{bin_name}") + # _make_tui_argv now dispatches on the TUI engine first; resolving "opentui" + # availability probes `node --version` (a subprocess.run this test would + # otherwise record). Pin the Ink engine — this test covers the Ink dev path. + monkeypatch.setattr(main_mod, "_resolve_tui_engine", lambda: "ink") calls = []