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:
Teknium 2026-07-14 07:37:54 -07:00
parent e81d18dfb4
commit 7bb409b2d0
2 changed files with 2 additions and 2 deletions

View file

@ -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)