Beispiel #1
0
 def tearDown(self):
     shutil.rmtree(self.tempdir)
     try:
         DBSession.remove()
     finally:
         try:
             os.remove(self.db_filename)
         except:
             pass
Beispiel #2
0
 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
Beispiel #3
0
 def tearDown(self):
     DBSession.remove()
     get_session().clear()
     shutil.rmtree(self.tempdir)
Beispiel #4
0
 def tearDown(self):
     DBSession.remove()