示例#1
0
 def setUp(self):
     """
     set up everything for a test case
     """
     self.config = testing.setUp()
     self.config.include('pyramid_mailer.testing')
     DBSession.remove()
     self.session = _initTestingDB()
示例#2
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
示例#3
0
 def setUp(self):
     self.config = testing.setUp()
     DBSession.remove()
     self.session = _initTestingDB()
示例#4
0
 def tearDown(self):
     """
     clean up after a test case
     """
     DBSession.remove()
     testing.tearDown()
示例#5
0
文件: tests.py 项目: C3S/C3SIntent
 def setUp(self):
     self.config = testing.setUp()
     self.config.include('pyramid_mailer.testing')
     DBSession.remove()
     self.session = _initTestingDB()
示例#6
0
 def tearDown(self):
     # maybe I need to check and remove globals here,
     # so the other tests are not compromised
     #del engine
     from c3sintent.models import DBSession
     DBSession.remove()
示例#7
0
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
示例#8
0
 def setUp(self):
     self.config = testing.setUp()
     self.config.include('pyramid_mailer.testing')
     DBSession.remove()
     self.session = _initTestingDB()
示例#9
0
 def setUp(self):
     self.config = testing.setUp()
     DBSession.remove()
     self.session = _initTestingDB()
示例#10
0
 def tearDown(self):
     """
     clean up after a test case
     """
     DBSession.remove()
     testing.tearDown()
示例#11
0
 def tearDown(self):
     # maybe I need to check and remove globals here,
     # so the other tests are not compromised
     #del engine
     from c3sintent.models import DBSession
     DBSession.remove()