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

Method test_plain_text_fallback

tests/test_compiler.py:205–208  ·  view source on GitHub ↗

If LLM returns plain text, _parse_json raises — caller handles fallback.

(self)

Source from the content-addressed store, hash-verified

203 assert "# Full page" in parsed["content"]
204
205 def test_plain_text_fallback(self):
206 """If LLM returns plain text, _parse_json raises — caller handles fallback."""
207 with pytest.raises((json.JSONDecodeError, ValueError)):
208 _parse_json("Just plain markdown text without JSON")
209
210
211class TestSanitizeConceptName:

Callers

nothing calls this directly

Calls 1

_parse_jsonFunction · 0.90

Tested by

no test coverage detected