[CMF-checkins] SVN: CMF/trunk/ Remove deprecated 'all_cmf_tests.py'
and supporting 'test_all.py' modules.
Tres Seaver
tseaver at palladion.com
Mon Nov 7 12:49:52 EST 2005
Log message for revision 39961:
Remove deprecated 'all_cmf_tests.py' and supporting 'test_all.py' modules.
Changed:
D CMF/trunk/CMFActionIcons/tests/test_all.py
D CMF/trunk/CMFCalendar/tests/test_all.py
D CMF/trunk/CMFCore/tests/test_all.py
D CMF/trunk/CMFDefault/tests/test_all.py
D CMF/trunk/CMFSetup/tests/test_all.py
D CMF/trunk/CMFTopic/tests/test_all.py
D CMF/trunk/CMFUid/tests/test_all.py
D CMF/trunk/DCWorkflow/tests/test_all.py
D CMF/trunk/all_cmf_tests.py
-=-
Deleted: CMF/trunk/CMFActionIcons/tests/test_all.py
===================================================================
--- CMF/trunk/CMFActionIcons/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFActionIcons/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,36 +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
-import 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/trunk/CMFCalendar/tests/test_all.py
===================================================================
--- CMF/trunk/CMFCalendar/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFCalendar/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,37 +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
-import 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/trunk/CMFCore/tests/test_all.py
===================================================================
--- CMF/trunk/CMFCore/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFCore/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,64 +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
-import 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/trunk/CMFDefault/tests/test_all.py
===================================================================
--- CMF/trunk/CMFDefault/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFDefault/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,51 +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
-import 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/trunk/CMFSetup/tests/test_all.py
===================================================================
--- CMF/trunk/CMFSetup/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFSetup/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,48 +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
-import 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/trunk/CMFTopic/tests/test_all.py
===================================================================
--- CMF/trunk/CMFTopic/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFTopic/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,41 +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
-import 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/trunk/CMFUid/tests/test_all.py
===================================================================
--- CMF/trunk/CMFUid/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/CMFUid/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,38 +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.
-#
-##############################################################################
-""" CMFUid tests.
-
-$Id$
-"""
-
-from unittest import main
-import Testing
-import 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/trunk/DCWorkflow/tests/test_all.py
===================================================================
--- CMF/trunk/DCWorkflow/tests/test_all.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/DCWorkflow/tests/test_all.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,37 +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
-import 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/trunk/all_cmf_tests.py
===================================================================
--- CMF/trunk/all_cmf_tests.py 2005-11-07 17:49:17 UTC (rev 39960)
+++ CMF/trunk/all_cmf_tests.py 2005-11-07 17:49:51 UTC (rev 39961)
@@ -1,107 +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$
-"""
-from warnings import warn
-
-import unittest
-import Testing
-import 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 )
- , ( 'CMFCollector', 0 )
- , ( 'CMFStaging', 0 )
- , ( 'CMFWorkspaces', 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():
- warn( 'all_cmf_tests is deprecated and will be removed in CMF 1.7. '
- 'Please run the tests using \"zopectl test\" instead.'
- , DeprecationWarning
- )
-
- 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