MCPcopy Create free account
hub / github.com/xerrors/Yuxi / FakeKnowledgeBase

Class FakeKnowledgeBase

backend/test/unit/knowledge/test_sample_question_utils.py:22–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20@pytest.mark.asyncio
21async def test_generate_database_sample_questions_rejects_empty_files(monkeypatch):
22 class FakeKnowledgeBase:
23 async def get_database_info(self, kb_id: str) -> dict:
24 return {"name": "空知识库", "kb_type": "milvus", "files": {}}
25
26 monkeypatch.setattr(sq, "knowledge_base", FakeKnowledgeBase())
27 monkeypatch.setattr(

Calls

no outgoing calls