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

Method test_entity_page_not_in_index

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

Source from the content-addressed store, hash-verified

335 assert any("unlisted" in issue for issue in result)
336
337 def test_entity_page_not_in_index(self, tmp_path):
338 wiki = _make_wiki(tmp_path)
339 (wiki / "entities").mkdir()
340 (wiki / "entities" / "ada-lovelace.md").write_text("# Ada Lovelace")
341 # index.md has no mention of the entity
342 (wiki / "index.md").write_text("# Index\n\n## Documents\n\n## Concepts\n\n## Entities\n")
343
344 result = check_index_sync(wiki)
345
346 assert any(
347 "entities/ada-lovelace.md not mentioned in index.md" in issue for issue in result
348 )
349
350 def test_missing_index_md(self, tmp_path):
351 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 2

check_index_syncFunction · 0.90
_make_wikiFunction · 0.70

Tested by

no test coverage detected