()
| 40 | |
| 41 | |
| 42 | def test_remove_source_keeps_others(): |
| 43 | text = "---\nsources: [summaries/a.md, summaries/b.md, summaries/c.md]\nbrief: x\n---\n\nbody\n" |
| 44 | rewritten, empty = _remove_source_from_frontmatter(text, "summaries/b.md") |
| 45 | assert empty is False |
| 46 | assert "summaries/a.md" in rewritten |
| 47 | assert "summaries/c.md" in rewritten |
| 48 | assert "summaries/b.md" not in rewritten |
| 49 | |
| 50 | |
| 51 | def test_remove_source_noop_when_not_present(): |
nothing calls this directly
no test coverage detected