If LLM returns plain text, _parse_json raises — caller handles fallback.
(self)
| 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 | |
| 211 | class TestSanitizeConceptName: |
nothing calls this directly
no test coverage detected