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

Method test_new_concept_without_brief

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

Source from the content-addressed store, hash-verified

282 assert "# Attention" in text
283
284 def test_new_concept_without_brief(self, tmp_path):
285 wiki = tmp_path / "wiki"
286 wiki.mkdir()
287 _write_concept(wiki, "attention", "# Attention\n\nDetails.", "paper.pdf", False)
288 path = wiki / "concepts" / "attention.md"
289 assert path.exists()
290 text = path.read_text()
291 assert 'sources: ["paper.pdf"]' in text
292 assert "brief:" not in text
293
294 def test_update_concept_updates_brief(self, tmp_path):
295 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_write_conceptFunction · 0.90

Tested by

no test coverage detected