def doCells(self, cells):
     start = self.time()
     ActionFixture.doCells(self, cells)
     split = self.time() - start
     cells.last().more = self.td(time.strftime("%H:%M:%S", time.localtime(start)))
     if split < 1.0:
         text = "&nbsp;"
     else:
         text = "%.1f" % (split,) # express to tenths of a second
     cells.last().more = self.td(text)
示例#2
0
 def doCells(self, cells):
     start = self.time()
     ActionFixture.doCells(self, cells)
     split = self.time() - start
     cells.last().more = self.td(time.strftime("%H:%M:%S", time.localtime(start)))
     if split < 1.0:
         text = "&nbsp;"
     else:
         text = "%.1f" % (split,) # express to tenths of a second
     cells.last().more = self.td(text)
 def doTable(self, table):  # extend the label row
     ActionFixture.doTable(self, table)
     table.parts.parts.last().more = self.td("time")
     table.parts.parts.last().more = self.td("split")
示例#4
0
 def setUp(self):
     print '%s %s' % (self.id(), self.shortDescription())
     FitGlobal.Environment = "Batch"
     ActionFixture.actor = None
     ActionFixture.cells = None
     self.af = ActionFixture()
 def doTable(self, table): # extend the label row
     ActionFixture.doTable(self, table)
     table.parts.parts.last().more = self.td("time")
     table.parts.parts.last().more = self.td("split")