mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
test: update stale _load_reasoning_config mocks for new model parameter
Two test mocks stubbed the old zero-arg signature; the chokepoint refactor added an optional model param that call sites now pass. Swept the full test tree for other stale stubs of the changed functions — the rest use MagicMock/patch(return_value=...), which tolerate the new arg.
This commit is contained in:
parent
e81d18dfb4
commit
7bb409b2d0
2 changed files with 2 additions and 2 deletions
|
|
@ -3887,7 +3887,7 @@ def _patch_create_agent_runtime(monkeypatch, captured: dict, fake_agent_cls):
|
|||
monkeypatch.setattr("gateway.run._resolve_gateway_model", lambda: "global/model")
|
||||
monkeypatch.setattr("gateway.run._load_gateway_config", lambda: {})
|
||||
monkeypatch.setattr(
|
||||
"gateway.run.GatewayRunner._load_reasoning_config", staticmethod(lambda: {})
|
||||
"gateway.run.GatewayRunner._load_reasoning_config", staticmethod(lambda model="": {})
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
"gateway.run.GatewayRunner._load_fallback_model", staticmethod(lambda: None)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue