The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(cli): assert config migration reaches DEFAULT_CONFIG's version, not 45
teknium1dde8f00c1848
diff --git a/tests/hermes_cli/test_update_config_reload_tools_config.py b/tests/hermes_cli/test_update_config_reload_tools_config.pyindex 03feb631c17..4fab1868701 100644--- a/tests/hermes_cli/test_update_config_reload_tools_config.py+++ b/tests/hermes_cli/test_update_config_reload_tools_config.py@@ -46,8 +46,8 @@ def test_reload_config_modules_restores_missing_tools_config_symbol():def test_update_migration_survives_stale_module_missing_call_time_symbol(tmp_path, monkeypatch):"""The reporter's exact shape: the cached ``tools_config`` predates ``_configurable_keys`` while- the on-disk v45 step imports it at call time. The updater's migration entry must still land- v44 → v45 instead of printing "Config format update failed"."""+ the on-disk v45 step imports it at call time. The updater's migration entry must still carry the+ v44 store to the latest version instead of printing "Config format update failed"."""home = tmp_path / "flat-home"home.mkdir()(home / "config.yaml").write_text(@@ -65,8 +65,11 @@ def test_update_migration_survives_stale_module_missing_call_time_symbol(tmp_patfrom hermes_constants import reset_hermes_home_overridereset_hermes_home_override(token)- text = (home / "config.yaml").read_text(encoding="utf-8")- assert "_config_version: 45" in text, text+ import yaml+ from hermes_cli.config import DEFAULT_CONFIG++ on_disk = yaml.safe_load((home / "config.yaml").read_text(encoding="utf-8"))+ assert on_disk["_config_version"] == DEFAULT_CONFIG["_config_version"], on_diskdef test_update_migration_import_failure_after_purge_prints_fallback(tmp_path, monkeypatch, capsys):