def tearDown(self): shutil.rmtree(self.tempdir) try: DBSession.remove() finally: try: os.remove(self.db_filename) except: pass
def tearDown(self): log.debug('Removing session') DBSession.remove() if DB_NAME: try: import requests requests.get('%s/clean/%s' % (FAITOUT, DB_NAME)) except: pass
def tearDown(self): DBSession.remove() get_session().clear() shutil.rmtree(self.tempdir)
def tearDown(self): DBSession.remove()