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

Method test_no_duplicates

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

Source from the content-addressed store, hash-verified

416 assert text.count("[[concepts/attention]] — New brief") == 1
417
418 def test_no_duplicates(self, tmp_path):
419 wiki = tmp_path / "wiki"
420 wiki.mkdir()
421 (wiki / "index.md").write_text(
422 "# Index\n\n## Documents\n- [[summaries/my-doc]] — Old brief\n\n## Concepts\n",
423 encoding="utf-8",
424 )
425 _update_index(wiki, "my-doc", [], doc_brief="New brief")
426 text = (wiki / "index.md").read_text()
427 assert text.count("[[summaries/my-doc]]") == 1
428
429 def test_backwards_compat_no_briefs(self, tmp_path):
430 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_update_indexFunction · 0.90

Tested by

no test coverage detected