MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _make_kb

Function _make_kb

tests/test_deck_chat_slash.py:14–24  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

12
13
14def _make_kb(tmp_path):
15 (tmp_path / ".openkb").mkdir()
16 (tmp_path / ".openkb" / "config.yaml").write_text("model: gpt-4o-mini\n")
17 (tmp_path / ".openkb" / "chats").mkdir()
18 (tmp_path / "wiki" / "concepts").mkdir(parents=True)
19 (tmp_path / "wiki" / "summaries").mkdir(parents=True)
20 (tmp_path / "wiki" / "index.md").write_text("# index\n")
21 # Populate so wiki-content gate accepts
22 (tmp_path / "wiki" / "concepts" / "demo.md").write_text("# demo\n")
23 (tmp_path / "wiki" / "summaries" / "demo.md").write_text("# demo\n")
24 return tmp_path
25
26
27@pytest.mark.asyncio

Calls

no outgoing calls

Tested by

no test coverage detected