示例#1
0
 def setUp(self):
     app.config.from_object(config.TestConfig)
     self._app = app
     self.app = app.test_client()
     self.db = db
     with app.app_context():
         initdb()
示例#2
0
def createdb():
    initdb()