def test_process_json_non_dict() -> None:
    """Test `process_json` for correct error on non-JSON input."""
    with pytest.raises(InvalidResponse) as exc_info:
        process_json('[1, 2]')

    assert str(exc_info.value) == 'Requires JSON dict.'
Test `process_json` for correct error on non-JSON input.
tests/test_read_user_dict.py