MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_plain_json

Method test_plain_json

tests/unit/test_llm_utils.py:303–304  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

301
302class TestExtractJsonObject:
303 def test_plain_json(self) -> None:
304 assert _extract_json_object('{"a": 1}') == {"a": 1}
305
306 def test_fenced_json(self) -> None:
307 assert _extract_json_object('```json\n{"a": 1}\n```') == {"a": 1}

Callers

nothing calls this directly

Calls 1

_extract_json_objectFunction · 0.90

Tested by

no test coverage detected