コード例 #1
0
ファイル: test_danmu.py プロジェクト: ethanluoyc/yechuandanmu
 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
ファイル: manage.py プロジェクト: ethanluoyc/yechuandanmu
def createdb():
    initdb()