Skip to content

The agent that grows with you

test(cli): also assert no unrecognized-key warning on stderr

KeyArgoa24db8e52a2a
diff --git a/tests/hermes_cli/test_set_config_value.py b/tests/hermes_cli/test_set_config_value.py
index bbdd868c966..ced185a0785 100644
--- a/tests/hermes_cli/test_set_config_value.py
+++ b/tests/hermes_cli/test_set_config_value.py
@@ -124,7 +124,9 @@ class TestConfigYamlRouting:
registered config key (not flagged as unrecognized) and coerce to a real list."""
set_config_value("tools.tool_search.defer", '["todo_list", "skill_manage"]')
- assert "not a recognized config key" not in capsys.readouterr().out
+ captured = capsys.readouterr()
+ assert "not a recognized config key" not in captured.out
+ assert "not a recognized config key" not in captured.err
config = yaml.safe_load(_read_config(_isolated_hermes_home))
assert config["tools"]["tool_search"]["defer"] == ["todo_list", "skill_manage"]