(self, tmp_path)
| 2146 | |
| 2147 | class 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( |
nothing calls this directly
no test coverage detected