Esempio n. 1
0
 def setUp(self):
     db.create_all()
Esempio n. 2
0
def createdb():
    """ Creates a database with all of the tables defined in
        your SQLAlchemy models
    """

    db.create_all()
Esempio n. 3
0
 def setUpClass(self):
     db.init_app(config={
         'uri': 'sqlite://',
     })
     db.drop_all()
     db.create_all()
Esempio n. 4
0
 def setUpClass(self):
     db.init_app(config={
         "uri": "sqlite://",
     })
     db.drop_all()
     db.create_all()