[CMF-checkins] CVS: CMF/CMFWiki/tests - test_all.py:1.2.24.1

Chris Withers chrisw@nipltd.com
Tue, 12 Feb 2002 09:12:43 -0500


Update of /cvs-repository/CMF/CMFWiki/tests
In directory cvs.zope.org:/tmp/cvs-serv10109/CMFWiki/tests

Modified Files:
      Tag: ChrisW-refactor_tests-branch
	test_all.py 
Log Message:
Factored out the crap in test_all so adding new test modules is a lot easier.

=== CMF/CMFWiki/tests/test_all.py 1.2 => 1.2.24.1 ===
-#from Products.CMFTracker.tests import test_IssueDescription
+"""Currently all stub, no substance."""
+import Zope
+from unittest import TestSuite,main
+from Products.CMFCore.tests.base.utils import build_test_suite
 
 def test_suite():
-    suite = unittest.TestSuite()
-    #suite.addTest( test_IssueDescription.test_suite() )
-    return suite
-
-def run():
-    if hasattr( unittest, 'JUnitTextTestRunner' ):
-        unittest.JUnitTextTestRunner().run( test_suite() )
-    else:
-        unittest.TextTestRunner( verbosity=0 ).run( test_suite() )
+    return TestSuite()
 
 if __name__ == '__main__':
-    run()
+    main(defaultTest='test_suite')