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

Method test_excludes_reports_directory

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

Source from the content-addressed store, hash-verified

715 """Tests for :func:`_load_wiki_pages` scope and exclusion rules."""
716
717 def test_excludes_reports_directory(self, tmp_path):
718 wiki = _make_wiki(tmp_path)
719 (wiki / "reports" / "run.md").write_text("# Report", encoding="utf-8")
720
721 pages = _load_wiki_pages(wiki)
722
723 assert not any(p.parts[-2] == "reports" for p in pages)
724
725 def test_excludes_sources_directory(self, tmp_path):
726 wiki = _make_wiki(tmp_path)

Callers

nothing calls this directly

Calls 2

_load_wiki_pagesFunction · 0.90
_make_wikiFunction · 0.70

Tested by

no test coverage detected