[CMF-checkins] SVN: CMF/trunk/CMFDefault/tests/test_ - made sure
tests don't fail if five:traversable is used
Yvo Schubbe
y.2006_ at wcm-solutions.de
Wed Feb 22 04:37:51 EST 2006
Log message for revision 41747:
- made sure tests don't fail if five:traversable is used
Changed:
U CMF/trunk/CMFDefault/tests/test_Image.py
U CMF/trunk/CMFDefault/tests/test_Portal.py
-=-
Modified: CMF/trunk/CMFDefault/tests/test_Image.py
===================================================================
--- CMF/trunk/CMFDefault/tests/test_Image.py 2006-02-22 04:40:28 UTC (rev 41746)
+++ CMF/trunk/CMFDefault/tests/test_Image.py 2006-02-22 09:37:50 UTC (rev 41747)
@@ -30,6 +30,7 @@
from Products.CMFCore.tests.base.dummy import DummySite
from Products.CMFCore.tests.base.dummy import DummyTool
+from Products.CMFCore.tests.base.testcase import _TRAVERSE_ZCML
from Products.CMFCore.tests.base.testcase import PlacelessSetup
from Products.CMFCore.tests.base.testcase import RequestTest
from Products.CMFDefault import tests
@@ -114,6 +115,7 @@
zcml.load_config('configure.zcml', Products.GenericSetup)
zcml.load_config('configure.zcml', Products.CMFCore)
zcml.load_config('configure.zcml', Products.DCWorkflow)
+ zcml.load_string(_TRAVERSE_ZCML)
try:
newSecurityManager(None, UnrestrictedUser('manager', '', ['Manager'], []))
factory = self.root.manage_addProduct['CMFDefault'].addConfiguredSite
Modified: CMF/trunk/CMFDefault/tests/test_Portal.py
===================================================================
--- CMF/trunk/CMFDefault/tests/test_Portal.py 2006-02-22 04:40:28 UTC (rev 41746)
+++ CMF/trunk/CMFDefault/tests/test_Portal.py 2006-02-22 09:37:50 UTC (rev 41747)
@@ -22,6 +22,7 @@
from Acquisition import aq_base
from Products.Five import zcml
+from Products.CMFCore.tests.base.testcase import _TRAVERSE_ZCML
from Products.CMFCore.tests.base.testcase import PlacelessSetup
from Products.CMFCore.tests.base.testcase import SecurityRequestTest
@@ -53,6 +54,7 @@
zcml.load_config('configure.zcml', Products.GenericSetup)
zcml.load_config('configure.zcml', Products.CMFCore)
zcml.load_config('configure.zcml', Products.DCWorkflow)
+ zcml.load_string(_TRAVERSE_ZCML)
def tearDown(self):
SecurityRequestTest.tearDown(self)
More information about the CMF-checkins
mailing list