[CMF-checkins] SVN: CMF/branches/1.5/ Removed deprecated 'all_cmf_tests.py' and supporting 'test_all.py' from products.

Tres Seaver tseaver at palladion.com
Mon Nov 7 12:49:18 EST 2005


Log message for revision 39960:
  Removed deprecated 'all_cmf_tests.py' and supporting 'test_all.py' from products.
  
  o Use 'zopectl test' to run CMF tests instead).
  
  

Changed:
  U   CMF/branches/1.5/CHANGES.txt
  D   CMF/branches/1.5/CMFActionIcons/tests/test_all.py
  D   CMF/branches/1.5/CMFCalendar/tests/test_all.py
  D   CMF/branches/1.5/CMFCore/tests/test_all.py
  D   CMF/branches/1.5/CMFDefault/tests/test_all.py
  D   CMF/branches/1.5/CMFSetup/tests/test_all.py
  D   CMF/branches/1.5/CMFTopic/tests/test_all.py
  D   CMF/branches/1.5/CMFUid/tests/test_all.py
  D   CMF/branches/1.5/DCWorkflow/tests/test_all.py
  D   CMF/branches/1.5/all_cmf_tests.py

-=-
Modified: CMF/branches/1.5/CHANGES.txt
===================================================================
--- CMF/branches/1.5/CHANGES.txt	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CHANGES.txt	2005-11-07 17:49:17 UTC (rev 39960)
@@ -54,6 +54,9 @@
 
   Others
 
+    - Removed deprecated 'all_cmf_tests.py' and supporting 'test_all.py'
+      from products (use 'zopectl test' to run CMF tests instead).
+
     - CMFDefault.Portal:  deprecated 'manage_addCMFSite'.
 
     - Collectors #384:  Added '__traceback_info__' to FSDTMLMethod's

Deleted: CMF/branches/1.5/CMFActionIcons/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFActionIcons/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFActionIcons/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,39 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFActionIcons tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFActionIcons.tests',[
-        'test_ActionIconsTool',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/CMFCalendar/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFCalendar/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFCalendar/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,40 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFCalendar tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFCalendar.tests',[
-        'test_Calendar',
-        'test_Event',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/CMFCore/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFCore/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFCore/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,67 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFCore tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFCore.tests',[
-        'test_ActionInformation',
-        'test_ActionProviderBase',
-        'test_ActionsTool',
-        'test_CachingPolicyManager',
-        'test_CatalogTool',
-        'test_ContentTypeRegistry',
-        'test_DirectoryView',
-        'test_DiscussionTool',
-        'test_DynamicType',
-        'test_Expression',
-        'test_FSFile',
-        'test_FSImage',
-        'test_FSMetadata',
-        'test_FSPageTemplate',
-        'test_FSPythonScript',
-        'test_FSSecurity',
-        'test_MemberDataTool',
-        'test_MembershipTool',
-        'test_OpaqueItems',
-        'test_PortalContent',
-        'test_PortalFolder',
-        'test_RegistrationTool',
-        'test_SkinsTool',
-        'test_TypesTool',
-        'test_UndoTool',
-        'test_URLTool',
-        'test_utils',
-        'test_WorkflowTool',
-        'testCookieCrumbler',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/CMFDefault/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFDefault/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFDefault/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,54 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFDefault tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFDefault.tests',[
-        'test_DefaultWorkflow',
-        'test_Discussions',
-        'test_DiscussionTool',
-        'test_Document',
-        'test_DublinCore',
-        'test_Favorite',
-        'test_Image',
-        'test_join',
-        'test_Link',
-        'test_MembershipTool',
-        'test_MetadataTool',
-        'test_NewsItem',
-        'test_Portal',
-        'test_PropertiesTool',
-        'test_RegistrationTool',
-        'test_utils',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/CMFSetup/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFSetup/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFSetup/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,51 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFSetup tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite( 'Products.CMFSetup.tests'
-                           , [ 'test_actions'
-                             , 'test_context'
-                             , 'test_differ'
-                             , 'test_properties'
-                             , 'test_registry'
-                             , 'test_rolemap'
-                             , 'test_skins'
-                             , 'test_tool'
-                             , 'test_typeinfo'
-                             , 'test_utils'
-                             , 'test_workflow'
-                             ]
-                           )
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')
-

Deleted: CMF/branches/1.5/CMFTopic/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFTopic/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFTopic/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,44 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFTopic tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFTopic.tests',[
-        'test_DateC',
-        'test_ListC',
-        'test_SIC',
-        'test_SortC',
-        'test_SSC',
-        'test_Topic',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/CMFUid/tests/test_all.py
===================================================================
--- CMF/branches/1.5/CMFUid/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/CMFUid/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,41 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMFCore tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.CMFUid.tests',[
-        'test_uidannotation',
-        'test_uidgeneration',
-        'test_uidhandling',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/DCWorkflow/tests/test_all.py
===================================================================
--- CMF/branches/1.5/DCWorkflow/tests/test_all.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/DCWorkflow/tests/test_all.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,40 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2003 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-def suite():
-    return build_test_suite('Products.DCWorkflow.tests',[
-        'test_DCWorkflow',
-        'test_roles',
-        ])
-
-def test_suite():
-    # Just to silence the top-level test.py
-    return None
-
-if __name__ == '__main__':
-    main(defaultTest='suite')

Deleted: CMF/branches/1.5/all_cmf_tests.py
===================================================================
--- CMF/branches/1.5/all_cmf_tests.py	2005-11-07 15:20:11 UTC (rev 39959)
+++ CMF/branches/1.5/all_cmf_tests.py	2005-11-07 17:49:17 UTC (rev 39960)
@@ -1,102 +0,0 @@
-#!/usr/bin/env python
-
-##############################################################################
-#
-# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (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.
-#
-##############################################################################
-""" CMF tests.
-
-$Id$
-"""
-
-import unittest
-import Testing
-try:
-    import Zope2
-except ImportError: # BBB: for Zope 2.7
-    import Zope as Zope2
-Zope2.startup()
-
-import getopt
-import sys
-
-from Products.CMFCore.tests.base.utils import build_test_suite
-
-
-#                  PackageName     Required?
-CMF_PACKAGES = [ ( 'CMFCore',        1 )
-               , ( 'CMFDefault',     1 )
-               , ( 'CMFTopic',       1 )
-               , ( 'DCWorkflow',     1 )
-               , ( 'CMFActionIcons', 1 )
-               , ( 'CMFSetup',       1 )
-               , ( 'CMFUid',         1 )
-               , ( 'CMFCalendar',    0 )
-               ]
-
-PACKAGES_UNDER_TEST = []
-
-def test_suite():
-
-    suite = unittest.TestSuite()
-
-    packages = PACKAGES_UNDER_TEST or CMF_PACKAGES
-
-    for package_name, required in packages:
-        dotted = 'Products.%s.tests' % package_name
-        suite.addTest( build_test_suite( dotted
-                                       , [ 'test_all' ]
-                                       , required=required
-                                       , suite_name='suite'
-                                       ) )
-
-    return suite
-
-def usage():
-
-    USAGE = """\
-all_cmf_tests.py [-?] <package_name>*
-
-where
-
-  package_name is the list of packages to be tested
-  default: %s
-"""
-
-    print USAGE % CMF_PACKAGES
-    sys.exit( 2 )
-
-def main():
-
-    try:
-        opts, args = getopt.getopt( sys.argv[1:], 'vq?' )
-    except getopt.GetoptError:
-        usage()
-
-    sys.argv[ 1: ] = []
-    PASSTHROUGH = ( '-v', '-q' )
-
-    for k, v in opts:
-
-        if k in PASSTHROUGH:
-            sys.argv.append( k )
-
-        if k == '-?' or k == '--help':
-            usage()
-
-    for arg in args:
-        PACKAGES_UNDER_TEST.append( ( arg, 1 ) )
-
-    unittest.main(defaultTest='test_suite')
-
-
-if __name__ == '__main__':
-    main()



More information about the CMF-checkins mailing list