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

Method test_new_concept_with_brief

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

Source from the content-addressed store, hash-verified

264
265class TestWriteConcept:
266 def test_new_concept_with_brief(self, tmp_path):
267 wiki = tmp_path / "wiki"
268 wiki.mkdir()
269 _write_concept(
270 wiki,
271 "attention",
272 "# Attention\n\nDetails.",
273 "paper.pdf",
274 False,
275 brief="Mechanism for selective focus",
276 )
277 path = wiki / "concepts" / "attention.md"
278 assert path.exists()
279 text = path.read_text()
280 assert 'sources: ["paper.pdf"]' in text
281 assert 'description: "Mechanism for selective focus"' in text
282 assert "# Attention" in text
283
284 def test_new_concept_without_brief(self, tmp_path):
285 wiki = tmp_path / "wiki"

Callers

nothing calls this directly

Calls 1

_write_conceptFunction · 0.90

Tested by

no test coverage detected