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

Method _seed

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

Source from the content-addressed store, hash-verified

2180
2181class TestEntityBacklinks:
2182 def _seed(self, tmp_path):
2183 (tmp_path / "summaries").mkdir()
2184 (tmp_path / "summaries" / "doc.md").write_text(
2185 "---\nsources: []\n---\n\n# Doc\n", encoding="utf-8"
2186 )
2187 (tmp_path / "entities").mkdir()
2188 (tmp_path / "entities" / "anthropic.md").write_text(
2189 "---\ntype: organization\nsources: [summaries/doc.md]\n---\n\n# Anthropic\n",
2190 encoding="utf-8",
2191 )
2192
2193 def test_summary_gets_entities_section(self, tmp_path):
2194 self._seed(tmp_path)

Calls

no outgoing calls

Tested by

no test coverage detected