Exemplo n.º 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()
Exemplo n.º 2
0
def initdataset_command():
    """Creates the datasets needed for the chatbot."""
    init_dataset()
    print('Initialized the datasets.')
Exemplo n.º 3
0
def initdataset_command():
    """Creates the datasets needed for the chatbot."""
    init_dataset()
    log.info("Initialized the datasets.")