def setUp(self): self.app = create_app() self.app.config.from_object('clustermgr.config.TestingConfig') self.client = self.app.test_client() with self.app.app_context(): db.create_all() appconf = AppConfiguration() appconf.gluu_version = '3.1.1' db.session.add(appconf) db.session.commit()
def setUp(self): self.app = create_app() self.app.config.from_object('clustermgr.config.TestingConfig') self.client = self.app.test_client() with self.app.app_context(): db.create_all()