MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / test_strips_unknown_target

Method test_strips_unknown_target

tests/test_lint.py:427–433  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

strip_ghost_wikilinksFunction · 0.90

Tested by

no test coverage detected