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

Method test_sorted_alphabetically

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

Source from the content-addressed store, hash-verified

607 assert brief == "A" * 150
608
609 def test_sorted_alphabetically(self, tmp_path):
610 wiki = tmp_path / "wiki"
611 concepts = wiki / "concepts"
612 concepts.mkdir(parents=True)
613 (concepts / "zebra.md").write_text("Zebra concept.", encoding="utf-8")
614 (concepts / "apple.md").write_text("Apple concept.", encoding="utf-8")
615 (concepts / "mango.md").write_text("Mango concept.", encoding="utf-8")
616 result = _read_concept_briefs(wiki)
617 lines = result.strip().splitlines()
618 slugs = [line.split(":")[0].lstrip("- ") for line in lines]
619 assert slugs == ["apple", "mango", "zebra"]
620
621 def test_reads_brief_from_frontmatter(self, tmp_path):
622 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_read_concept_briefsFunction · 0.90

Tested by

no test coverage detected