[Checkins] SVN: Products.CMFCore/trunk/Products/CMFCore/tests/test_TypesTool.py Don't make base test classes derived from unittest.TestCase, to avoid being sniffed by test finder.

Tres Seaver tseaver at palladion.com
Wed Sep 17 16:46:34 EDT 2008


Log message for revision 91217:
  Don't make base test classes derived from unittest.TestCase, to avoid being sniffed by test finder.

Changed:
  U   Products.CMFCore/trunk/Products/CMFCore/tests/test_TypesTool.py

-=-
Modified: Products.CMFCore/trunk/Products/CMFCore/tests/test_TypesTool.py
===================================================================
--- Products.CMFCore/trunk/Products/CMFCore/tests/test_TypesTool.py	2008-09-17 20:38:40 UTC (rev 91216)
+++ Products.CMFCore/trunk/Products/CMFCore/tests/test_TypesTool.py	2008-09-17 20:46:33 UTC (rev 91217)
@@ -166,7 +166,7 @@
                       'Unauthorized raised' )
 
 
-class TypeInfoTests(unittest.TestCase):
+class TypeInfoTests:
 
     def _makeTypesTool(self):
         from Products.CMFCore.TypesTool import TypesTool
@@ -364,7 +364,7 @@
         self.assertEqual(ti._actions[2].action.text, wanted_actions_text2)
 
 
-class FTIDataTests( TypeInfoTests ):
+class FTIDataTests( TypeInfoTests, unittest.TestCase ):
 
     def _makeInstance(self, id, **kw):
         from Products.CMFCore.TypesTool import FactoryTypeInformation
@@ -390,7 +390,7 @@
         self.assertEqual( ti.factory, 'addFoo' )
 
 
-class STIDataTests( TypeInfoTests ):
+class STIDataTests( TypeInfoTests, unittest.TestCase ):
 
     def _makeInstance(self, id, **kw):
         from Products.CMFCore.TypesTool import ScriptableTypeInformation
@@ -416,7 +416,7 @@
         self.assertEqual( ti.constructor_path, 'foo_add' )
 
 
-class FTIConstructionTestCase(unittest.TestCase):
+class FTIConstructionTestCase:
 
     def _getTargetClass(self):
         from Products.CMFCore.TypesTool import FactoryTypeInformation
@@ -482,7 +482,7 @@
         self.assertEqual(bam._kw['frickle'], 'natz')
 
 
-class FTIOldstyleConstructionTests(FTIConstructionTestCase):
+class FTIOldstyleConstructionTests(FTIConstructionTestCase, unittest.TestCase):
 
     def setUp(self):
         self.f = DummyFolder(fake_product=1)



More information about the Checkins mailing list