예제 #1
0
    def tearDown(self):
        """ Nettoyage entre les tests """

        print "Dropping the database..."
        DBSession.expunge_all()
        metadata.drop_all()

        self.plugin = None
예제 #2
0
파일: helpers.py 프로젝트: vigilo/vigiconf
def teardown_db():
    """Supprime toutes les tables du modèle de la BDD."""
    # pour postgres, sinon ça bloque
    transaction.abort()
    metadata.drop_all()
예제 #3
0
def teardown_db():
    """Method used to destroy a database"""
    print "Destroying model"
    engine = config['pylons.app_globals'].sa_engine
    metadata.drop_all(engine)
예제 #4
0
def drop():
    print "DROPping all tables"
    metadata.drop_all()
    transaction.commit()
예제 #5
0
def teardown_db():
    """Supprime toutes les tables du modèle de la BDD."""
    DBSession.expunge_all()
    DBSession.rollback()
    DBSession.flush()
    metadata.drop_all()
예제 #6
0
파일: controller.py 프로젝트: vigilo/models
def teardown_db():
    """Supprime toutes les tables du modèle de la BDD."""
    metadata.drop_all()