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)
def setUp(self): db.create_all() self.client = db.get_app().test_client()
def setUp(self): db.create_all()