def setUp(self): self.env = tractest.EnvironmentStub() self.db = self.env.get_db_cnx() self.burndown = burndown.BurndownComponent(self.env) self.burndown.upgrade_environment(self.db) self.mockReq = tractest.Mock(perm=tractest.MockPerm(), href=tractest.Mock(burndown=lambda : "burndown"))
def setUp(self): self.env = test.EnvironmentStub() self.db = self.env.get_db_cnx() init.CodeReviewInit(self.env).upgrade_environment(self.db) cursor = self.db.cursor() for table, cols, vals in get_data(db): cursor.executemany("INSERT INTO %s (%s) VALUES (%s)" % (table, ','.join(cols), ','.join(['%s' for c in cols])), vals) self.db.commit()
def setUp(self): self.env = test.EnvironmentStub() self.db = self.env.get_db_cnx() self.init = init.CodeReviewInit(self.env)
def setUp(self): self.env = tractest.EnvironmentStub() self.db = self.env.get_db_cnx()
def setUp(self): self.env = test.EnvironmentStub() self.db = self.env.get_db_cnx() self.burndown = burndown.BurndownComponent(self.env)