[CMF-checkins] CVS: CMF/DCWorkflow/tests - test_all.py:1.8

Yvo Schubbe y.2004_ at wcm-solutions.de
Mon Apr 26 04:55:54 EDT 2004


Update of /cvs-repository/CMF/DCWorkflow/tests
In directory cvs.zope.org:/tmp/cvs-serv32349/DCWorkflow/tests

Modified Files:
	test_all.py 
Log Message:
- added optional 'suite_name' argument to build_test_suite()
- refactored all_cmf_tests and test_all to hide their test suites from other test runners
- added CMFActionIcons tests to all_cmf_tests
- removed pre Zope 2.6.4 compatibility code
- some whitespace, import and copyright cleanup


=== CMF/DCWorkflow/tests/test_all.py 1.7 => 1.8 ===
--- CMF/DCWorkflow/tests/test_all.py:1.7	Thu Jan 15 12:14:44 2004
+++ CMF/DCWorkflow/tests/test_all.py	Mon Apr 26 04:55:23 2004
@@ -1,35 +1,37 @@
 ##############################################################################
 #
 # Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
-"""DCWorkflow tests.
+""" DCWorkflow tests.
 
 $Id$
 """
-from unittest import main
 
+from unittest import main
 import Testing
 import Zope
-try:
-    Zope.startup()
-except AttributeError:
-    # for Zope versions before 2.6.1
-    pass
+Zope.startup()
 
 from Products.CMFCore.tests.base.utils import build_test_suite
 
-def test_suite():
+
+def suite():
     return build_test_suite('Products.DCWorkflow.tests',[
-        'test_DCWorkflow', 'test_roles',
+        'test_DCWorkflow',
+        'test_roles',
         ])
 
+def test_suite():
+    # Just to silence the top-level test.py
+    return None
+
 if __name__ == '__main__':
-    main(defaultTest='test_suite')
+    main(defaultTest='suite')




More information about the CMF-checkins mailing list