MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / FakeMockLLM

Class FakeMockLLM

tests/test_desktop_gui.py:1028–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026
1027def 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"))

Calls

no outgoing calls