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

Function test_remove_source_keeps_others

tests/test_remove.py:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def 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
51def test_remove_source_noop_when_not_present():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected