Example #1
0
 def setUp(self):
     """ Inicializa el Testing, crea todas las tablas de la base de datos de prueba """
     app.config['TESTING'] = True
     app.config['CSRF_ENABLED'] = False
     app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://*****:*****@localhost:5432/databasePrueba'
     self.db = db
     self.app = app.test_client() 
     db.create_all()
Example #2
0
def initdb():
    """ Inicializar base de datos """
    db.create_all()
    createUser()
    createPermiso()
    createRol()
    createProject()
    createTipoDeAtrib()
    createFase()
Example #3
0
def initdb():
    """ Inicializar base de datos """
    db.create_all()
    createUser()
    createPermiso()
    createRol()
    createProject()
    createTipoDeAtrib()
    createFase()
Example #4
0
def initdb():
    """ Inicializar base de datos """
    db.create_all()
Example #5
0
def initdb():
    db.create_all()