use render tls-sprint
authorsylvain.thenault@logilab.fr
Wed, 13 May 2009 10:12:03 +0200
branchtls-sprint
changeset 1773 789ee507a8e0
parent 1772 21d1db460cdb
child 1774 4f4e0c6682e5
use render
devtools/testlib.py
--- a/devtools/testlib.py	Wed May 13 09:13:26 2009 +0200
+++ b/devtools/testlib.py	Wed May 13 10:12:03 2009 +0200
@@ -194,7 +194,7 @@
         else:
             self.set_description("testing %s, mod=%s (no rset)" % (vid, view.__module__))
         if template is None: # raw view testing, no template
-            viewfunc = view.dispatch
+            viewfunc = view.render
         else:
             templateview = self.vreg.select_view(template, req, rset, view=view, **kwargs)
             kwargs['view'] = view
@@ -327,7 +327,7 @@
         for action in self.list_actions_for(rset):
             yield InnerTest(self._testname(rset, action.id, 'action'), action.url)
         for box in self.list_boxes_for(rset):
-            yield InnerTest(self._testname(rset, box.id, 'box'), box.dispatch)
+            yield InnerTest(self._testname(rset, box.id, 'box'), box.render)
 
     @staticmethod
     def _testname(rset, objid, objtype):