(self, tmp_path)
| 416 | assert text.count("[[concepts/attention]] — New brief") == 1 |
| 417 | |
| 418 | def test_no_duplicates(self, tmp_path): |
| 419 | wiki = tmp_path / "wiki" |
| 420 | wiki.mkdir() |
| 421 | (wiki / "index.md").write_text( |
| 422 | "# Index\n\n## Documents\n- [[summaries/my-doc]] — Old brief\n\n## Concepts\n", |
| 423 | encoding="utf-8", |
| 424 | ) |
| 425 | _update_index(wiki, "my-doc", [], doc_brief="New brief") |
| 426 | text = (wiki / "index.md").read_text() |
| 427 | assert text.count("[[summaries/my-doc]]") == 1 |
| 428 | |
| 429 | def test_backwards_compat_no_briefs(self, tmp_path): |
| 430 | wiki = tmp_path / "wiki" |
nothing calls this directly
no test coverage detected