mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test(config): cover doctor allowlist for Hermes-written root keys
Regression for known_plugin_toolsets / group_sessions_per_user / thread_sessions_per_user so validate_config_structure no longer false-positives on keys Hermes owns.
This commit is contained in:
parent
7c2ece53c0
commit
54157da9ee
1 changed files with 14 additions and 0 deletions
|
|
@ -253,6 +253,20 @@ class TestUnknownTopLevelKeys:
|
|||
assert _EXTRA_KNOWN_ROOT_KEYS.issubset(_KNOWN_ROOT_KEYS)
|
||||
assert _KNOWN_ROOT_KEYS == frozenset(DEFAULT_CONFIG.keys()) | _EXTRA_KNOWN_ROOT_KEYS
|
||||
|
||||
def test_hermes_written_roots_not_flagged_as_unknown(self):
|
||||
"""Roots Hermes itself writes/reads must not warn as unknown (#67397)."""
|
||||
issues = validate_config_structure({
|
||||
"model": {"provider": "openrouter"},
|
||||
"known_plugin_toolsets": {"cli": ["spotify"]},
|
||||
"group_sessions_per_user": True,
|
||||
"thread_sessions_per_user": False,
|
||||
})
|
||||
unknown = [i for i in issues if "Unknown top-level config key" in i.message]
|
||||
messages = " ".join(i.message for i in unknown)
|
||||
assert "known_plugin_toolsets" not in messages
|
||||
assert "group_sessions_per_user" not in messages
|
||||
assert "thread_sessions_per_user" not in messages
|
||||
|
||||
def test_provider_like_unknown_root_keeps_misplaced_message(self):
|
||||
"""Preserve existing base_url/api_key root-level guidance (not generic unknown)."""
|
||||
issues = validate_config_structure({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue