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

The 'not a recognized config key' notice for set_config_value is emitted on
stdout today, but asserting stderr too guards against a future stream move
and makes the regression test robust to either channel.
This commit is contained in:
KeyArgo
2026-09-19 20:09:15 -06:00
committed by Teknium
parent d6beebcc57
commit a24db8e52a

View File

@@ -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"]