Exemplo n.º 1
0
def create_test_db():
    dprint('Deleting the old database...')
    db.drop_all()  # to avoid violating the unique value constraints
    dprint('Creating a test database...')
    db.create_all()
    #return (add_test_data())
    return ({'result': 'Hub DB created'})
Exemplo n.º 2
0
def delete_test_db(current_user):
    dprint('{} is deleting the Hub database...'.format(current_user))
    db.drop_all()
    return ({'result': 'Test DB removed'})