devtools/testlib.py
changeset 6140 65a619eb31c4
parent 6109 47d9c0e0f7b7
child 6141 b8287e54b528
equal deleted inserted replaced
6139:f76599a96238 6140:65a619eb31c4
   901             # resultset's syntax tree
   901             # resultset's syntax tree
   902             rset = backup_rset
   902             rset = backup_rset
   903         for action in self.list_actions_for(rset):
   903         for action in self.list_actions_for(rset):
   904             yield InnerTest(self._testname(rset, action.__regid__, 'action'), self._test_action, action)
   904             yield InnerTest(self._testname(rset, action.__regid__, 'action'), self._test_action, action)
   905         for box in self.list_boxes_for(rset):
   905         for box in self.list_boxes_for(rset):
   906             yield InnerTest(self._testname(rset, box.__regid__, 'box'), box.render)
   906             w = [].append
       
   907             yield InnerTest(self._testname(rset, box.__regid__, 'box'), box.render, w)
   907 
   908 
   908     @staticmethod
   909     @staticmethod
   909     def _testname(rset, objid, objtype):
   910     def _testname(rset, objid, objtype):
   910         return '%s_%s_%s' % ('_'.join(rset.column_types(0)), objid, objtype)
   911         return '%s_%s_%s' % ('_'.join(rset.column_types(0)), objid, objtype)
   911 
   912