Exemple #1
0
 def setup(self):
     app = create_app('fv_prov_es.settings.DevConfig', env='dev')
     self.app = app.test_client()
     db.app = app
     db.create_all()
     admin = User('admin', 'supersafepassword')
     db.session.add(admin)
     db.session.commit()
Exemple #2
0
 def setup(self):
     app = create_app("fv_prov_es.settings.DevConfig", env="dev")
     self.app = app.test_client()
     db.app = app
     db.create_all()
     admin = User("admin", "supersafepassword")
     db.session.add(admin)
     db.session.commit()
Exemple #3
0
def createdb():
    """ Creates a database with all of the tables defined in
        your Alchemy models
    """

    db.create_all()
Exemple #4
0
 def setup(self):
     app = create_app('fv_prov_es.settings.DevConfig', env='dev')
     self.app = app.test_client()
     db.app = app
     db.create_all()
Exemple #5
0
def createdb():
    """ Creates a database with all of the tables defined in
        your Alchemy models
    """

    db.create_all()