The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: pin merged-from-main tests to this branch's contracts
ethernet06da1225e60d
diff --git a/tests/hermes_cli/test_config_effective.py b/tests/hermes_cli/test_config_effective.pyindex 6ddb4fc0b52..b805bc5a0ae 100644--- a/tests/hermes_cli/test_config_effective.py+++ b/tests/hermes_cli/test_config_effective.py@@ -4,7 +4,8 @@ bootstrap modules) goes through."""import textwrapimport pytest-import yaml++import hermes_yaml as yaml@pytest.fixturediff --git a/tests/hermes_cli/test_config_read_guard.py b/tests/hermes_cli/test_config_read_guard.pyindex d47ca1068ec..f47c410acc8 100644--- a/tests/hermes_cli/test_config_read_guard.py+++ b/tests/hermes_cli/test_config_read_guard.py@@ -47,6 +47,10 @@ ALLOWLIST = {"hermes_cli/managed_scope.py",# Parse-health probe: intentionally answers "does the raw file parse?"."gateway/readiness.py",+ # _early_interface_from_config(): the pre-argparse TUI decision runs before+ # hermes_cli.config is importable; it reads one display key best-effort and+ # defaults to the classic REPL on any error.+ "hermes_cli/main.py",}# Directories that never count (tests may build fixture configs freely).diff --git a/tests/hermes_cli/test_lazy_command_exports.py b/tests/hermes_cli/test_lazy_command_exports.pyindex 2214ee14294..ad6bc98308a 100644--- a/tests/hermes_cli/test_lazy_command_exports.py+++ b/tests/hermes_cli/test_lazy_command_exports.py@@ -71,5 +71,6 @@ def test_frozen_surface_covers_every_update_cmd_main_read():def test_removed_reexports_are_gone():- for name in ("_scan_dashboard_processes", "_warn_stale_dashboard_processes", "_self", "_PROVIDER_MODELS"):+ # _self stays: it is on the frozen old-updater surface (tests/compat/old_updater_surface.json).+ for name in ("_scan_dashboard_processes", "_warn_stale_dashboard_processes", "_PROVIDER_MODELS"):assert not hasattr(hermes_cli.main, name), namediff --git a/tests/hermes_cli/test_set_config_value.py b/tests/hermes_cli/test_set_config_value.pyindex 1b1d493eb2f..a14fb37df11 100644--- a/tests/hermes_cli/test_set_config_value.py+++ b/tests/hermes_cli/test_set_config_value.py@@ -1066,7 +1066,8 @@ class TestContainerTypeRefusal:def test_valid_literal_and_scalar_keys_still_write(self, _isolated_hermes_home):self._write_config(_isolated_hermes_home, {"model": {"default": "m", "aliases": {"a": "p/m"}}})- set_config_value("custom_providers", "[{name: ok, base_url: http://h/v1}]")+ # YAML 1.2 (ruamel): a bare `:` inside a flow mapping value needs quoting.+ set_config_value("custom_providers", "[{name: ok, base_url: 'http://h/v1'}]")set_config_value("model.default", "bar")with pytest.raises(SystemExit):set_config_value("model.aliases", "notamap")diff --git a/tests/scripts/test_check_compat_pointers.py b/tests/scripts/test_check_compat_pointers.pyindex d06ab317233..23615e13540 100644--- a/tests/scripts/test_check_compat_pointers.py+++ b/tests/scripts/test_check_compat_pointers.py@@ -35,8 +35,8 @@ def test_py_files_prunes_dependency_trees_before_descent(tmp_path, monkeypatch):visited = []real_walk = os.walk- def tracking_walk(root):- for dirpath, dirnames, filenames in real_walk(root):+ def tracking_walk(root, **kwargs):+ for dirpath, dirnames, filenames in real_walk(root, **kwargs):visited.append(Path(dirpath))yield dirpath, dirnames, filenamesdiff --git a/tests/test_managed_runtime_resolution.py b/tests/test_managed_runtime_resolution.pyindex 3885a8fba12..2b88650a773 100644--- a/tests/test_managed_runtime_resolution.py+++ b/tests/test_managed_runtime_resolution.py@@ -65,10 +65,6 @@ _ALLOWED: dict[tuple[str, str], str] = {"can only run what is on that subshell's PATH, which local.py populates ""with the managed dirs — so PATH is the correct question to ask here."),- ("tools/lazy_deps.py", "uv"): (- "Fallback after resolve_uv(), plus the except-branch for the "- "hermes_cli import guard."- ),("hermes_cli/gateway.py", "node"): ("Fallback rung of _append_node_dir_for_service(), after the managed ""dirs from iter_hermes_node_dirs() are already appended."diff --git a/tests/tools/test_windows_native_support.py b/tests/tools/test_windows_native_support.pyindex 9ead929c5ce..8491f91572c 100644--- a/tests/tools/test_windows_native_support.py+++ b/tests/tools/test_windows_native_support.py@@ -323,7 +323,7 @@ class TestTzdataDependencyDeclared:# specifier in between (==X.Y.Z, >=X.Y.Z,<W, etc.) and either quote# style on the marker.pattern = re.compile(- r'"tzdata[^"]*;\s*sys_platform\s*==\s*[\'"]win32[\'"]\s*"'+ r'"tzdata[^"]*;\s*sys_platform\s*==\s*[\'"]win32[\'"][^"]*"')assert pattern.search(source), ("tzdata must be a Windows-only dep in pyproject.toml dependencies "