fix(test): isolate test_tool_policy unit suite from external model endpoint state

This commit is contained in:
Alexandre Teixeira
2026-10-31 21:34:49 +00:00
parent e33607fd4f
commit 3dd081c8d4
+1
View File
@@ -48,6 +48,7 @@ def _patch_loop_basics(monkeypatch):
monkeypatch.setattr(al, "get_setting", lambda key, default=None: default, raising=False)
monkeypatch.setattr(al, "get_mcp_manager", lambda: None, raising=False)
monkeypatch.setattr(al, "estimate_tokens", lambda *a, **k: 10, raising=False)
monkeypatch.setattr(al, "_configured_model_tool_surface_raw", lambda *a, **k: "", raising=False)
def test_detects_strong_guide_only_turns():