Log message for revision 71759:
  added provideUtility() calls for UnicodeEncodingConflictResolver
  in order to make "zopectl test" shut up
  

Changed:
  U   Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py
  U   Zope/trunk/lib/python/Products/PageTemplates/tests/testHTMLTests.py
  U   Zope/trunk/lib/python/Products/PageTemplates/tests/test_ptfile.py

-=-
Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py 
2007-01-07 11:39:14 UTC (rev 71758)
+++ Zope/trunk/lib/python/Products/PageTemplates/tests/testDTMLTests.py 
2007-01-07 12:00:13 UTC (rev 71759)
@@ -14,9 +14,12 @@
 import unittest
 
 import zope.component.testing
+from zope.component import provideUtility
 from zope.traversing.adapters import DefaultTraversable
 from Products.PageTemplates.tests import util
 from Products.PageTemplates.PageTemplate import PageTemplate
+from Products.PageTemplates.interfaces import IUnicodeEncodingConflictResolver
+from Products.PageTemplates.unicodeconflictresolver import 
DefaultUnicodeEncodingConflictResolver
 from Acquisition import Implicit
 from AccessControl import SecurityManager
 from AccessControl.SecurityManagement import noSecurityManager
@@ -50,6 +53,7 @@
     def setUp(self):
         super(DTMLTests, self).setUp()
         zope.component.provideAdapter(DefaultTraversable, (None,))
+        provideUtility(DefaultUnicodeEncodingConflictResolver, 
IUnicodeEncodingConflictResolver)
 
         self.t = AqPageTemplate()
         self.policy = UnitTestSecurityPolicy()

Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/testHTMLTests.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/tests/testHTMLTests.py 
2007-01-07 11:39:14 UTC (rev 71758)
+++ Zope/trunk/lib/python/Products/PageTemplates/tests/testHTMLTests.py 
2007-01-07 12:00:13 UTC (rev 71759)
@@ -14,11 +14,14 @@
 import unittest
 
 import zope.component.testing
+from zope.component import provideUtility
 from zope.traversing.adapters import DefaultTraversable
 from Products.PageTemplates.tests import util
 from Products.PageTemplates.PageTemplate import PageTemplate
 from Products.PageTemplates.GlobalTranslationService import \
      setGlobalTranslationService
+from Products.PageTemplates.interfaces import IUnicodeEncodingConflictResolver
+from Products.PageTemplates.unicodeconflictresolver import 
DefaultUnicodeEncodingConflictResolver
 from AccessControl import SecurityManager
 from AccessControl.SecurityManagement import noSecurityManager
 
@@ -67,6 +70,8 @@
         super(HTMLTests, self).setUp()
         zope.component.provideAdapter(DefaultTraversable, (None,))
 
+        provideUtility(DefaultUnicodeEncodingConflictResolver, 
IUnicodeEncodingConflictResolver)
+
         self.folder = f = Folder()
         f.laf = AqPageTemplate()
         f.t = AqPageTemplate()

Modified: Zope/trunk/lib/python/Products/PageTemplates/tests/test_ptfile.py
===================================================================
--- Zope/trunk/lib/python/Products/PageTemplates/tests/test_ptfile.py   
2007-01-07 11:39:14 UTC (rev 71758)
+++ Zope/trunk/lib/python/Products/PageTemplates/tests/test_ptfile.py   
2007-01-07 12:00:13 UTC (rev 71759)
@@ -15,6 +15,12 @@
 
     TEMPFILENAME = tempfile.mktemp(".zpt")
 
+    def setUp(self):
+        from zope.component import provideUtility
+        from Products.PageTemplates.interfaces import 
IUnicodeEncodingConflictResolver
+        from Products.PageTemplates.unicodeconflictresolver import 
DefaultUnicodeEncodingConflictResolver
+        provideUtility(DefaultUnicodeEncodingConflictResolver, 
IUnicodeEncodingConflictResolver)
+
     def tearDown(self):
         if os.path.exists(self.TEMPFILENAME):
             os.unlink(self.TEMPFILENAME)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to