| 1026 | |
| 1027 | def test_desktop_wiki_ask_can_answer_general_question_without_local_retrieval(monkeypatch: pytest.MonkeyPatch) -> None: |
| 1028 | class FakeMockLLM: |
| 1029 | name = "mock" |
| 1030 | model = "mock-llm" |
| 1031 | |
| 1032 | monkeypatch.setattr(agents, "build_llm_provider", lambda: FakeMockLLM()) |
| 1033 | monkeypatch.setattr(agents.wiki_db, "search_nodes", lambda *_args, **_kwargs: pytest.fail("direct questions should not search wiki")) |
no outgoing calls