(self, tmp_path)
| 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" |
nothing calls this directly
no test coverage detected