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

Method test_fallback_list_format

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

Source from the content-addressed store, hash-verified

96 assert parsed["related"] == ["baz"]
97
98 def test_fallback_list_format(self):
99 text = json.dumps([{"name": "foo", "title": "Foo"}])
100 parsed = _parse_json(text)
101 assert isinstance(parsed, list)
102
103 def test_fenced_dict(self):
104 text = '```json\n{"create": [], "update": [], "related": []}\n```'

Callers

nothing calls this directly

Calls 1

_parse_jsonFunction · 0.90

Tested by

no test coverage detected