def skippingTestFunction(self, class_instance, func, func_type=TestFunctionType.TEST, thread_num=None): # Don't log results for setup and teardown unless they fail if func_type == TestFunctionType.TEST: with self.lock: result = TestResult(class_instance, func, status=TestResultType.SKIPPED, thread=thread_num) result.start_time = datetime.datetime.now() result.end_time = datetime.datetime.now() self.results.put(result)
def runningTestFunction(self, class_instance, func, func_type=TestFunctionType.TEST, thread_num=None): result = TestResult(class_instance, func, thread=thread_num) result.start_time = datetime.datetime.now() with self.lock: self.current_tests[(class_instance, func, thread_num)] = result