Test `process_json` for correct error on malformed input.
()
| 8 | |
| 9 | |
| 10 | def test_process_json_invalid_json() -> None: |
| 11 | """Test `process_json` for correct error on malformed input.""" |
| 12 | with pytest.raises(InvalidResponse) as exc_info: |
| 13 | process_json('nope]') |
| 14 | |
| 15 | assert str(exc_info.value) == 'Unable to decode to JSON.' |
| 16 | |
| 17 | |
| 18 | def test_process_json_non_dict() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…