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

Method test_update_concept_updates_brief

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

Source from the content-addressed store, hash-verified

292 assert "brief:" not in text
293
294 def test_update_concept_updates_brief(self, tmp_path):
295 wiki = tmp_path / "wiki"
296 concepts = wiki / "concepts"
297 concepts.mkdir(parents=True)
298 (concepts / "attention.md").write_text(
299 "---\nsources: [paper1.pdf]\nbrief: Old brief\n---\n\n# Attention\n\nOld content.",
300 encoding="utf-8",
301 )
302 _write_concept(wiki, "attention", "New info.", "paper2.pdf", True, brief="Updated brief")
303 text = (concepts / "attention.md").read_text()
304 assert "paper2.pdf" in text
305 assert "paper1.pdf" in text
306 assert 'description: "Updated brief"' in text
307 assert "Old brief" not in text
308
309 def test_update_concept_appends_source(self, tmp_path):
310 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_write_conceptFunction · 0.90

Tested by

no test coverage detected