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

Method test_invalid_json

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

Source from the content-addressed store, hash-verified

76 assert _parse_json(text) == [{"name": "bar"}]
77
78 def test_invalid_json(self):
79 with pytest.raises((json.JSONDecodeError, ValueError)):
80 _parse_json("not json")
81
82
83class TestParseConceptsPlan:

Callers

nothing calls this directly

Calls 1

_parse_jsonFunction · 0.90

Tested by

no test coverage detected