(self)
| 72 | assert _parse_json('[{"name": "foo"}]') == [{"name": "foo"}] |
| 73 | |
| 74 | def test_fenced_json(self): |
| 75 | text = '```json\n[{"name": "bar"}]\n```' |
| 76 | assert _parse_json(text) == [{"name": "bar"}] |
| 77 | |
| 78 | def test_invalid_json(self): |
| 79 | with pytest.raises((json.JSONDecodeError, ValueError)): |
nothing calls this directly
no test coverage detected