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

Method test_sorted_alphabetically

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

Source from the content-addressed store, hash-verified

693 assert "(organization, 3 sources)" in out
694
695 def test_sorted_alphabetically(self, tmp_path):
696 ent = tmp_path / "entities"
697 ent.mkdir()
698 (ent / "zeta.md").write_text(
699 "---\ntype: person\nsources: [summaries/a.md]\nbrief: Last letter of Greek alphabet.\n---\n",
700 encoding="utf-8",
701 )
702 (ent / "alpha.md").write_text(
703 "---\ntype: concept\nsources: [summaries/b.md]\nbrief: First letter of Greek alphabet.\n---\n",
704 encoding="utf-8",
705 )
706 out = _read_entity_briefs(tmp_path)
707 lines = out.strip().splitlines()
708 assert lines[0].startswith("- alpha ")
709 assert lines[1].startswith("- zeta ")
710
711 def test_reads_description_and_lowercases_type(self, tmp_path):
712 ent = tmp_path / "entities"

Callers

nothing calls this directly

Calls 1

_read_entity_briefsFunction · 0.90

Tested by

no test coverage detected