mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-17 14:42:06 +00:00
tests: pin ink engine in _make_tui_argv npm-bootstrap tests (post-merge semantic fix)
Main's rewritten test_tui_npm_install.py tests call _make_tui_argv expecting the Ink/npm flow unconditionally; with the dual-engine dispatch merged in, _resolve_tui_engine() auto-selects opentui whenever ui-opentui/dist is built in the repo, routing the call away from the path under test (first subprocess became 'node --version' instead of 'npm run build'). Pin the engine to ink via an autouse fixture, mirroring the existing pinning precedent in test_tui_resume_flow.py.
This commit is contained in:
parent
ab37440ce6
commit
e1067dbbe5
756 changed files with 79874 additions and 19585 deletions
44
tests/hermes_cli/test_system_stats_platform.py
Normal file
44
tests/hermes_cli/test_system_stats_platform.py
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
from hermes_cli.web_server import _display_system_platform
|
||||
|
||||
|
||||
def test_windows_11_build_displays_as_windows_11():
|
||||
info = _display_system_platform(
|
||||
system="Windows",
|
||||
release="10",
|
||||
version="10.0.26200",
|
||||
platform_label="Windows-10-10.0.26200-SP0",
|
||||
)
|
||||
|
||||
assert info["os"] == "Windows"
|
||||
assert info["os_release"] == "11"
|
||||
assert info["os_version"] == "10.0.26200"
|
||||
assert info["platform"] == "Windows-11-10.0.26200-SP0"
|
||||
|
||||
|
||||
def test_windows_10_build_keeps_windows_10_label():
|
||||
info = _display_system_platform(
|
||||
system="Windows",
|
||||
release="10",
|
||||
version="10.0.19045",
|
||||
platform_label="Windows-10-10.0.19045-SP0",
|
||||
)
|
||||
|
||||
assert info["os"] == "Windows"
|
||||
assert info["os_release"] == "10"
|
||||
assert info["platform"] == "Windows-10-10.0.19045-SP0"
|
||||
|
||||
|
||||
def test_non_windows_platform_unchanged():
|
||||
info = _display_system_platform(
|
||||
system="Linux",
|
||||
release="6.8.0",
|
||||
version="#1 SMP",
|
||||
platform_label="Linux-6.8.0-x86_64-with-glibc2.39",
|
||||
)
|
||||
|
||||
assert info == {
|
||||
"os": "Linux",
|
||||
"os_release": "6.8.0",
|
||||
"os_version": "#1 SMP",
|
||||
"platform": "Linux-6.8.0-x86_64-with-glibc2.39",
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue