コード例 #1
0
 def setUpClass(cls):
     cls.client = app.test_client()
     with app.app_context():
         init_db()
         update_db()
         settings.TESTING = True
         skf.app.initialize_app(app)
コード例 #2
0
ファイル: test_skf.py プロジェクト: rlilojr/skf-flask
 def setUpClass(cls):
     cls.client = app.test_client()
     with app.app_context():
         init_db()
         update_db()
         settings.TESTING = True
         skf.app.initialize_app(app)
コード例 #3
0
ファイル: test_skf.py プロジェクト: naeemullah/skf-flask
 def setUpClass(cls):
     cls.client = app.test_client()
     with app.app_context():
         update_db()
         init_db()
         chatbot_tools.init_dataset()
         settings.TESTING = True
     app.app_context().push()
コード例 #4
0
def updatedb_command():
    """Update the database with the markdown files."""
    update_db()
    print('Markdown files updated in the database.')
コード例 #5
0
ファイル: app.py プロジェクト: erdal-pb/skf-flask
def updatedb_command():
    """Update the database with the markdown files."""
    update_db()
    log.info("Database updated with the markdown files.")