1 # Copyright (c) 2018 Red Hat, Inc. and others. All rights reserved.
3 # This program and the accompanying materials are made available under the
4 # terms of the Eclipse Public License v1.0 which accompanies this distribution,
5 # and is available at http://www.eclipse.org/legal/epl-v10.html
9 from gerritquery import GerritQuery
13 REMOTE_URL = GerritQuery.remote_url
14 BRANCH = 'stable/oxygen'
18 PROJECT = "controller"
21 class TestRequest(unittest.TestCase):
23 logg.Logger(logging.DEBUG, logging.INFO)
24 self.gerritquery = GerritQuery(REMOTE_URL, BRANCH, QLIMIT, VERBOSE)
26 def test_get_gerrits(self):
27 changeid = "I41232350532e56340c1fe9853ef7e74e3aa03359"
28 gerrits = self.gerritquery.get_gerrits(PROJECT, changeid, 1, status="merged")
29 print("{}".format(gerrits))
32 if __name__ == '__main__':