Commit b88f9541 authored by Hanno Schlichting's avatar Hanno Schlichting

Some cleanup and provide an explicit test_suite function, the automatic...

Some cleanup and provide an explicit test_suite function, the automatic discovery and ZopeTestCase don't seem to like each other
parent 226712e2
......@@ -15,10 +15,6 @@
"""
import unittest
import Testing
#import Zope2
#Zope2.startup()
from Testing.ZopeTestCase.layer import ZopeLite
......@@ -109,6 +105,3 @@ def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(SetConfigTests))
return suite
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
......@@ -12,9 +12,7 @@
#
##############################################################################
import sys
import unittest
import logging
import transaction
class DoomedTransactionInManagerTest(unittest.TestCase):
......@@ -38,6 +36,3 @@ def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(DoomedTransactionInManagerTest))
return suite
if __name__ == '__main__':
unittest.main(defaultTest='test_suite')
......@@ -12,6 +12,7 @@
##############################################################################
import logging
import unittest
from Testing.ZopeTestCase import ZopeTestCase
......@@ -61,3 +62,9 @@ class StartupTests(ZopeTestCase):
provideHandler(logevent, [IDatabaseOpened])
startup()
self.assertEqual(str(handler), logged)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(StartupTests))
return suite
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