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

Method test_omits_description_when_empty

tests/test_compiler.py:256–262  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

254 assert "# Summary" in text
255
256 def test_omits_description_when_empty(self, tmp_path):
257 wiki = tmp_path / "wiki"
258 wiki.mkdir()
259 _write_summary(wiki, "my-doc", "# Summary\n\nContent.")
260 text = (wiki / "summaries" / "my-doc.md").read_text()
261 assert 'type: "Summary"' in text
262 assert "description:" not in text
263
264
265class TestWriteConcept:

Callers

nothing calls this directly

Calls 1

_write_summaryFunction · 0.90

Tested by

no test coverage detected