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

Method test_plain_json

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

Source from the content-addressed store, hash-verified

69
70class TestParseJson:
71 def test_plain_json(self):
72 assert _parse_json('[{"name": "foo"}]') == [{"name": "foo"}]
73
74 def test_fenced_json(self):
75 text = '```json\n[{"name": "bar"}]\n```'

Callers

nothing calls this directly

Calls 1

_parse_jsonFunction · 0.90

Tested by

no test coverage detected