(self, tmp_path)
| 292 | assert "brief:" not in text |
| 293 | |
| 294 | def test_update_concept_updates_brief(self, tmp_path): |
| 295 | wiki = tmp_path / "wiki" |
| 296 | concepts = wiki / "concepts" |
| 297 | concepts.mkdir(parents=True) |
| 298 | (concepts / "attention.md").write_text( |
| 299 | "---\nsources: [paper1.pdf]\nbrief: Old brief\n---\n\n# Attention\n\nOld content.", |
| 300 | encoding="utf-8", |
| 301 | ) |
| 302 | _write_concept(wiki, "attention", "New info.", "paper2.pdf", True, brief="Updated brief") |
| 303 | text = (concepts / "attention.md").read_text() |
| 304 | assert "paper2.pdf" in text |
| 305 | assert "paper1.pdf" in text |
| 306 | assert 'description: "Updated brief"' in text |
| 307 | assert "Old brief" not in text |
| 308 | |
| 309 | def test_update_concept_appends_source(self, tmp_path): |
| 310 | wiki = tmp_path / "wiki" |
nothing calls this directly
no test coverage detected