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

Method test_no_op_when_all_linked

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

Source from the content-addressed store, hash-verified

940 assert "[[concepts/transformer]]" in text
941
942 def test_no_op_when_all_linked(self, tmp_path):
943 wiki = tmp_path / "wiki"
944 summaries = wiki / "summaries"
945 summaries.mkdir(parents=True)
946 original = "# Summary\n\n[[concepts/attention]] and [[concepts/transformer]]"
947 (summaries / "paper.md").write_text(original, encoding="utf-8")
948 _backlink_summary(wiki, "paper", ["attention", "transformer"])
949 assert (summaries / "paper.md").read_text() == original
950
951 def test_skips_if_file_missing(self, tmp_path):
952 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_backlink_summaryFunction · 0.90

Tested by

no test coverage detected