Author: jmorliaguet
Date: Tue Dec  6 13:53:56 2005
New Revision: 1965

Modified:
   cpsskins/branches/jmo-perspectives/doc/portlet-rendering.txt
   cpsskins/branches/jmo-perspectives/ftests/test_portlet.py
Log:

- test fixes



Modified: cpsskins/branches/jmo-perspectives/doc/portlet-rendering.txt
==============================================================================
--- cpsskins/branches/jmo-perspectives/doc/portlet-rendering.txt        
(original)
+++ cpsskins/branches/jmo-perspectives/doc/portlet-rendering.txt        Tue Dec 
 6 13:53:56 2005
@@ -29,7 +29,7 @@
 
    to obtain the data, the portlet's __call__() method is called:
 
-    >>> from cpsskins.browser.rendering.engine import ContextInfo
+    >>> from cpsskins.browser.rendering.context import ContextInfo
     >>> info = ContextInfo({'data': None, 'metadata': None})
     >>> info.globals = ContextInfo({'request': request})
 

Modified: cpsskins/branches/jmo-perspectives/ftests/test_portlet.py
==============================================================================
--- cpsskins/branches/jmo-perspectives/ftests/test_portlet.py   (original)
+++ cpsskins/branches/jmo-perspectives/ftests/test_portlet.py   Tue Dec  6 
13:53:56 2005
@@ -22,11 +22,21 @@
 from zope.app.testing.functional import FunctionalDocFileSuite
 from zope.testing import doctest
 
+def setUp(test):
+    from zope.app.testing import ztapi
+    from cpsskins.elements.interfaces import IElement
+    from cpsskins.elements import element
+    from cpsskins.perspectives import perspective
+    from cpsskins.perspectives.interfaces import IPerspective
+    from cpsskins.relations.interfaces import IRelatable
+    ztapi.provideAdapter(IElement, IRelatable, element.Relatable)
+    ztapi.provideAdapter(IPerspective, IRelatable, perspective.Relatable)
+
 def test_suite():
     return unittest.TestSuite((
-        doctest.DocFileSuite('../doc/local-portlets.txt'),
-        doctest.DocFileSuite('../doc/portlet-rendering.txt'),
-        FunctionalDocFileSuite('../doc/portlet-ordering.txt'),
+        doctest.DocFileSuite('../doc/local-portlets.txt', setUp=setUp),
+        doctest.DocFileSuite('../doc/portlet-rendering.txt', setUp=setUp),
+        FunctionalDocFileSuite('../doc/portlet-ordering.txt', setUp=setUp),
         ))
 
 if __name__ == '__main__':
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to