예제 #1
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
     try:
         os.remove('test_utils.db')
     except:
         print("file not found: test_utils.db")
         pass
예제 #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()
예제 #3
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
예제 #4
0
파일: tests.py 프로젝트: C3S/speedfunding
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
     os.remove('tests.db')