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

Method test_extracts_entities_group

tests/test_compiler.py:111–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109
110class TestParseEntitiesPlan:
111 def test_extracts_entities_group(self):
112 parsed = {
113 "concepts": {"create": [{"name": "x", "title": "X"}], "update": [], "related": []},
114 "entities": {
115 "create": [{"name": "anthropic", "title": "Anthropic", "type": "organization"}],
116 "update": [],
117 "related": ["nvidia"],
118 },
119 }
120 ents = _parse_entities_plan(parsed)
121 assert ents["create"] == [
122 {"name": "anthropic", "title": "Anthropic", "type": "organization"}
123 ]
124 assert ents["related"] == ["nvidia"]
125
126 def test_missing_entities_key_is_empty(self):
127 ents = _parse_entities_plan({"create": [], "update": [], "related": []})

Callers

nothing calls this directly

Calls 1

_parse_entities_planFunction · 0.90

Tested by

no test coverage detected