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

Method test_backwards_compat_no_briefs

tests/test_compiler.py:429–439  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

427 assert text.count("[[summaries/my-doc]]") == 1
428
429 def test_backwards_compat_no_briefs(self, tmp_path):
430 wiki = tmp_path / "wiki"
431 wiki.mkdir()
432 (wiki / "index.md").write_text(
433 "# Index\n\n## Documents\n\n## Concepts\n\n## Explorations\n",
434 encoding="utf-8",
435 )
436 _update_index(wiki, "my-doc", ["attention"])
437 text = (wiki / "index.md").read_text()
438 assert "[[summaries/my-doc]]" in text
439 assert "[[concepts/attention]]" in text
440
441 def test_updates_concept_brief_only_inside_concepts_section(self, tmp_path):
442 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_update_indexFunction · 0.90

Tested by

no test coverage detected