Пример #1
0
 def get_time_taken(self):
     if None in (self._last_time, self._first_time):
         return None
     return timedelta_to_seconds(self._last_time - self._first_time)
Пример #2
0
 def _handle_test(self, test_dict):
     start, stop = test_dict['timestamps']
     if test_dict['status'] == 'exists' or None in (start, stop):
         return
     self._times[test_dict['id']] = str(timedelta_to_seconds(stop - start))
Пример #3
0
 def get_time_taken(self):
     if None in (self._last_time, self._first_time):
         return None
     return timedelta_to_seconds(self._last_time - self._first_time)