Example #1
0
def _main():
    dev_db = Config.SQLALCHEMY_DATABASE_URI

    if os.path.exists(dev_db):
        sys.exit('"%s" already exists.' % dev_db)
    else:
        db.create_all()
        sys.exit('Database "%s" and all tables are created!.' % dev_db)
Example #2
0
 def setUp(self):
     db.create_all()
     self.client = db.get_app().test_client()
Example #3
0
 def setUp(self):
     db.create_all()