mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
tests(cli): align tui argv prebuild test with the node-probe launcher
This commit is contained in:
parent
c007d08419
commit
72118b049f
1 changed files with 4 additions and 0 deletions
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue