def test_process_json_invalid_json() -> None:
    """Test `process_json` for correct error on malformed input."""
    with pytest.raises(InvalidResponse) as exc_info:
        process_json('nope]')

    assert str(exc_info.value) == 'Unable to decode to JSON.'
Test `process_json` for correct error on malformed input.
tests/test_read_user_dict.py