Exemplo n.º 1
0
 def stopTest(self, test):
     "Called after execute each test method."
     _TextTestResult.stopTest(self, test)
     self.stop_time = time.time()
     
     if self.callback and callable(self.callback):
         self.callback()
         self.callback = None
Exemplo n.º 2
0
    def stopTest(self, test):
        "Called after execute each test method."
        self._restore_standard_output()
        _TextTestResult.stopTest(self, test)
        self.stop_time = time.time()

        if self.callback and isinstance(self.callback, collections.Callable):
            self.callback()
            self.callback = None
Exemplo n.º 3
0
    def stopTest(self, test):
        """ Called after excute each test method. """
        self._save_output_data()
        _TextTestResult.stopTest(self, test)
        self.stop_time = time.time()

        if self.callback and callable(self.callback):
            self.callback()
            self.callback = None
Exemplo n.º 4
0
 def stopTest(self, test):
     self.tests[-1][2] = time.time() - self.tests[-1][2]
     _TextTestResult.stopTest(self, test)
Exemplo n.º 5
0
 def stopTest(self, test):
     Result.stopTest(self, test)
     if not isinstance(test, TestSuite):
         _TextTestResult.stopTest(self, test)