Esempio n. 1
0
 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)
Esempio n. 2
0
 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
Esempio n. 3
0
 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)
Esempio n. 4
0
 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