(self, tmp_path)
| 264 | |
| 265 | class TestWriteConcept: |
| 266 | def test_new_concept_with_brief(self, tmp_path): |
| 267 | wiki = tmp_path / "wiki" |
| 268 | wiki.mkdir() |
| 269 | _write_concept( |
| 270 | wiki, |
| 271 | "attention", |
| 272 | "# Attention\n\nDetails.", |
| 273 | "paper.pdf", |
| 274 | False, |
| 275 | brief="Mechanism for selective focus", |
| 276 | ) |
| 277 | path = wiki / "concepts" / "attention.md" |
| 278 | assert path.exists() |
| 279 | text = path.read_text() |
| 280 | assert 'sources: ["paper.pdf"]' in text |
| 281 | assert 'description: "Mechanism for selective focus"' in text |
| 282 | assert "# Attention" in text |
| 283 | |
| 284 | def test_new_concept_without_brief(self, tmp_path): |
| 285 | wiki = tmp_path / "wiki" |
nothing calls this directly
no test coverage detected