Commit ea61b0e2 authored by's avatar
Browse files

use render

branch : tls-sprint
parent 21d1db460cdb
......@@ -194,7 +194,7 @@ class WebTest(EnvBasedTC):
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
templateview = self.vreg.select_view(template, req, rset, view=view, **kwargs)
kwargs['view'] = view
......@@ -327,7 +327,7 @@ class WebTest(EnvBasedTC):
for action in self.list_actions_for(rset):
yield InnerTest(self._testname(rset,, 'action'), action.url)
for box in self.list_boxes_for(rset):
yield InnerTest(self._testname(rset,, 'box'), box.dispatch)
yield InnerTest(self._testname(rset,, 'box'), box.render)
def _testname(rset, objid, objtype):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment