Exemple #1
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
     try:
         os.remove('test_utils.db')
     except:
         print("file not found: test_utils.db")
         pass
Exemple #2
0
    def tearDown(self):
        # maybe I need to check and remove globals here,
        # so the other tests are not compromised
        #del engine
#        from c3smembership.models import DBSession
#        DBSession.close()
#        DBSession.remove()
        DBSession.remove()
        testing.tearDown()
Exemple #3
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
Exemple #4
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
     os.remove('tests.db')