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()
def initdb(): """ Inicializar base de datos """ db.create_all() createUser() createPermiso() createRol() createProject() createTipoDeAtrib() createFase()
def initdb(): """ Inicializar base de datos """ db.create_all()
def initdb(): db.create_all()