(self)
| 425 | assert ghosts == [] |
| 426 | |
| 427 | def test_strips_unknown_target(self): |
| 428 | out, ghosts = strip_ghost_wikilinks( |
| 429 | "See [[concepts/missing]] for details.", |
| 430 | {"concepts/attention"}, |
| 431 | ) |
| 432 | assert out == "See missing for details." |
| 433 | assert ghosts == ["concepts/missing"] |
| 434 | |
| 435 | def test_rewrites_fuzzy_match_underscore_to_hyphen(self): |
| 436 | out, ghosts = strip_ghost_wikilinks( |
nothing calls this directly
no test coverage detected