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

Method test_entities_section_written

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

Source from the content-addressed store, hash-verified

2146
2147class TestIndexEntities:
2148 def test_entities_section_written(self, tmp_path):
2149 _update_index(
2150 tmp_path,
2151 "doc",
2152 [],
2153 doc_brief="d",
2154 entity_names=["anthropic"],
2155 entity_meta={"anthropic": ("organization", "AI lab behind Claude.")},
2156 )
2157 text = (tmp_path / "index.md").read_text(encoding="utf-8")
2158 assert "## Entities" in text
2159 assert "- [[entities/anthropic]] (organization) — AI lab behind Claude." in text
2160
2161 def test_entity_entry_replaced_on_update(self, tmp_path):
2162 _update_index(

Callers

nothing calls this directly

Calls 1

_update_indexFunction · 0.90

Tested by

no test coverage detected