(self, tmp_path)
| 427 | assert text.count("[[summaries/my-doc]]") == 1 |
| 428 | |
| 429 | def test_backwards_compat_no_briefs(self, tmp_path): |
| 430 | wiki = tmp_path / "wiki" |
| 431 | wiki.mkdir() |
| 432 | (wiki / "index.md").write_text( |
| 433 | "# Index\n\n## Documents\n\n## Concepts\n\n## Explorations\n", |
| 434 | encoding="utf-8", |
| 435 | ) |
| 436 | _update_index(wiki, "my-doc", ["attention"]) |
| 437 | text = (wiki / "index.md").read_text() |
| 438 | assert "[[summaries/my-doc]]" in text |
| 439 | assert "[[concepts/attention]]" in text |
| 440 | |
| 441 | def test_updates_concept_brief_only_inside_concepts_section(self, tmp_path): |
| 442 | wiki = tmp_path / "wiki" |
nothing calls this directly
no test coverage detected