MCPcopy Create free account
hub / github.com/Qinbf/groundmap / _make_external_project

Function _make_external_project

scripts/tests/test_kb_root.py:50–54  ·  view source on GitHub ↗

在 root 下搭一个 workspaces/proj 数据目录(root 即"项目数据根")。

(root: Path)

Source from the content-addressed store, hash-verified

48
49
50def _make_external_project(root: Path):
51 """在 root 下搭一个 workspaces/proj 数据目录(root 即"项目数据根")。"""
52 concepts = root / "workspaces" / "proj" / "wiki" / "concepts"
53 concepts.mkdir(parents=True)
54 (concepts / "widget.md").write_text(PAGE_MD, encoding="utf-8")
55
56
57def test_kb_root_points_engine_at_external_project(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected