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

Method test_multiple_broken_links

tests/test_lint.py:60–68  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

58 assert "missing_concept" in result[0]
59
60 def test_multiple_broken_links(self, tmp_path):
61 wiki = _make_wiki(tmp_path)
62 (wiki / "summaries" / "doc.md").write_text(
63 "See [[concepts/foo]] and [[concepts/bar]]", encoding="utf-8"
64 )
65
66 result = find_broken_links(wiki)
67
68 assert len(result) == 2
69
70 def test_no_links_means_no_errors(self, tmp_path):
71 wiki = _make_wiki(tmp_path)

Callers

nothing calls this directly

Calls 2

find_broken_linksFunction · 0.90
_make_wikiFunction · 0.70

Tested by

no test coverage detected