(self, tmp_path)
| 595 | assert "Transformer is a neural network" in result |
| 596 | |
| 597 | def test_truncates_long_content(self, tmp_path): |
| 598 | wiki = tmp_path / "wiki" |
| 599 | concepts = wiki / "concepts" |
| 600 | concepts.mkdir(parents=True) |
| 601 | long_body = "A" * 300 |
| 602 | (concepts / "longconcept.md").write_text(long_body, encoding="utf-8") |
| 603 | result = _read_concept_briefs(wiki) |
| 604 | # The brief part should be truncated at 150 chars |
| 605 | brief = result.split("- longconcept: ", 1)[1] |
| 606 | assert len(brief) == 150 |
| 607 | assert brief == "A" * 150 |
| 608 | |
| 609 | def test_sorted_alphabetically(self, tmp_path): |
| 610 | wiki = tmp_path / "wiki" |
nothing calls this directly
no test coverage detected