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

Method test_garbage_raises

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

Source from the content-addressed store, hash-verified

310 assert _extract_json_object('Here you go:\n{"a": 1}\nDone.') == {"a": 1}
311
312 def test_garbage_raises(self) -> None:
313 with pytest.raises(ValueError):
314 _extract_json_object("not json")
315
316
317class TestGetChatModel:

Callers

nothing calls this directly

Calls 1

_extract_json_objectFunction · 0.90

Tested by

no test coverage detected