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

Function test_remove_source_noop_when_not_present

tests/test_remove.py:51–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_remove_source_noop_when_not_present():
52 text = "---\nsources: [summaries/a.md]\n---\n\nbody\n"
53 rewritten, empty = _remove_source_from_frontmatter(text, "summaries/z.md")
54 assert rewritten == text
55 assert empty is False
56
57
58def test_remove_source_noop_without_frontmatter():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected