The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: read config with encoding=utf-8 in the custom-provider switch tests
kshitijk4poor72749b24821d
diff --git a/tests/hermes_cli/test_model_switch_custom_providers.py b/tests/hermes_cli/test_model_switch_custom_providers.pyindex a1fe627a15d..d8224b41407 100644--- a/tests/hermes_cli/test_model_switch_custom_providers.py+++ b/tests/hermes_cli/test_model_switch_custom_providers.py@@ -2350,7 +2350,7 @@ def test_auto_saved_catalog_round_trips_without_pinning(tmp_path, monkeypatch):_save_discovered_models_to_config(_LOCAL_ENDPOINT, list(_LOCAL_CATALOG))- saved = yaml.safe_load(cfg_path.read_text())["custom_providers"][0]+ saved = yaml.safe_load(cfg_path.read_text(encoding="utf-8"))["custom_providers"][0]assert saved["models_discovered"] is Trueassert list(saved["models"]) == _LOCAL_CATALOGassert not any(m.startswith("__") for m in saved["models"]), (@@ -2432,7 +2432,7 @@ def test_legacy_sentinel_catalog_still_resolves_and_migrates(tmp_path, monkeypat_save_discovered_models_to_config(_LOCAL_ENDPOINT, list(_LOCAL_CATALOG))- saved = yaml.safe_load(cfg_path.read_text())["custom_providers"][0]+ saved = yaml.safe_load(cfg_path.read_text(encoding="utf-8"))["custom_providers"][0]assert saved["models_discovered"] is Trueassert list(saved["models"]) == _LOCAL_CATALOGassert "__discovered_model_catalog__" not in saved["models"]