예제 #1
0
 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()
예제 #2
0
파일: app.py 프로젝트: mzfr/skf-flask
def initdataset_command():
    """Creates the datasets needed for the chatbot."""
    init_dataset()
    print('Initialized the datasets.')
예제 #3
0
파일: app.py 프로젝트: erdal-pb/skf-flask
def initdataset_command():
    """Creates the datasets needed for the chatbot."""
    init_dataset()
    log.info("Initialized the datasets.")