blob: 65978b7b5cbba12251f0402feaf5ef764bfc9b26 [file] [log] [blame]
# Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class MockGerritAPI(object):
def __init__(self, host, user, token):
self.host = host
self.user = user
self.token = token
def query_exportable_open_cls(self):
return []
def get(self, path, raw=False): # pylint: disable=unused-argument
return '' if raw else {}
def post(self, path, data): # pylint: disable=unused-argument
return {}