mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix: enable plugins in config.yaml for lazy-discovery tests
The opt-in-by-default change (70111eea) requires plugins to be listed
in plugins.enabled. The cherry-picked test fixtures didn't write this
config, so two tests failed on current main.
This commit is contained in:
@@ -702,6 +702,10 @@ class TestTelegramMenuCommands:
|
||||
"def register(ctx):\n"
|
||||
" ctx.register_command('lcm', lambda args: 'ok', description='LCM status and diagnostics')\n"
|
||||
)
|
||||
# Opt-in: plugins are opt-in by default, so enable in config.yaml
|
||||
(tmp_path / "config.yaml").write_text(
|
||||
"plugins:\n enabled:\n - cmd-plugin\n"
|
||||
)
|
||||
monkeypatch.setenv("HERMES_HOME", str(tmp_path))
|
||||
|
||||
with patch.object(plugins_mod, "_plugin_manager", None):
|
||||
|
||||
Reference in New Issue
Block a user