iro/test_helpers/dbtestcase.py
branchdevel
changeset 241 546316b0b09c
parent 230 448dd8d36839
child 294 0e75bd39767d
--- a/iro/test_helpers/dbtestcase.py	Wed Mar 21 19:43:36 2012 +0100
+++ b/iro/test_helpers/dbtestcase.py	Fri Mar 23 16:16:56 2012 +0100
@@ -13,6 +13,8 @@
 
 from iro.controller.pool import dbPool
 
+from .utils import DummyObserver
+
 class DBTestCase(unittest.TestCase):
     '''a TestCase with DB connection
     you have to set self.session manually in setUp'''
@@ -22,8 +24,11 @@
 
     def setUp(self):
         md.setUp()
+        self.log = DummyObserver()
+        self.log.start()
 
     def tearDown(self):
+        self.log.stop()
         self.__cleanDB()
     
     def session(self,autocommit=True):