Skip to content

The agent that grows with you

test(acp): stub load_config on the real hermes_cli.config module

teknium19a07debfbfb5
diff --git a/tests/acp_adapter/test_acp_commands.py b/tests/acp_adapter/test_acp_commands.py
index 60ce83bbd8e..8d80a29d2ee 100644
--- a/tests/acp_adapter/test_acp_commands.py
+++ b/tests/acp_adapter/test_acp_commands.py
@@ -92,11 +92,7 @@ def test_acp_real_agent_gets_session_db_for_recall(monkeypatch):
return module
monkeypatch.setitem(sys.modules, "run_agent", mod("run_agent", AIAgent=CapturingAgent))
- monkeypatch.setitem(
- sys.modules,
- "hermes_cli.config",
- mod("hermes_cli.config", load_config=lambda: {"model": {"default": "m", "provider": "p"}}),
- )
+ monkeypatch.setattr("hermes_cli.config.load_config", lambda: {"model": {"default": "m", "provider": "p"}})
monkeypatch.setitem(
sys.modules,
"hermes_cli.runtime_provider",