Esempio n. 1
0
    def elapsed(self):
        duration = self._content.get('elapsed')
        if duration is None:
            return None

        if isinstance(duration, int):
            return timedelta(seconds=duration)
        return testrail_duration_to_timedelta(duration)
Esempio n. 2
0
 def estimate_forecast(self):
     duration = self._content.get('estimate_forecast')
     if duration is None:
         return None
     return testrail_duration_to_timedelta(duration)
Esempio n. 3
0
 def elapsed(self):
     duration = self._content.get('elapsed')
     if duration is None:
         return None
     return testrail_duration_to_timedelta(duration)