Ejemplo n.º 1
0
    def setUp(self):
        self.app = create_app(config=self.AFM_CONFIG)
        self.app_context = self.app.app_context()
        self.app_context.push()
        db.create_all()

        self.test_app = TestApp(self.app)
 def create_database():
     db.create_all()
Ejemplo n.º 3
0
def create(app, args):
    with app.app_context():
        db.create_all()
Ejemplo n.º 4
0
 def create_database():
     db.create_all()
def create(app, args):
    with app.app_context():
        db.create_all()