Commit 3a0c451b authored by Chris McDonough's avatar Chris McDonough

Fix failing tests due to lack of dummy class and missing functions...

Fix failing tests due to lack of dummy class and missing functions catch_log_errors and ignore_log_errors.
parent 1af5d95f
......@@ -18,12 +18,16 @@ from Testing.ZODButil import makeDB, cleanDB
import SearchIndex.UnTextIndex
import SearchIndex.GlobbingLexicon
class Dummy:
def __init__( self, text ):
self.text = text
class Tests(unittest.TestCase):
def setUp(self):
self.index=SearchIndex.UnTextIndex.UnTextIndex('text')
self.doc=Dummy(text='this is the time, when all good zopes')
catch_log_errors()
def dbopen(self):
db = self.db = makeDB()
......@@ -40,7 +44,6 @@ class Tests(unittest.TestCase):
del self.db
def tearDown(self):
ignore_log_errors()
get_transaction().abort()
if hasattr(self, 'jar'):
self.dbclose()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment