def METHOD_NAME(mock_requests):
    mock_requests.get.return_value = MockResponse(status_code=200, json_contents={})
    def bad_json(*_):
        raise json.JSONDecodeError("", "", 1)
    mock_requests.get.return_value.json = bad_json
    with pytest.raises(IncompatibleClientError):
        validate_server_compatibility(use_cached=False)