def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1, elapsed_times=True, properties=None): _TextTestResult.__init__(self, stream, descriptions, verbosity) self.successes = [] self.callback = None self.elapsed_times = elapsed_times self.properties = None # junit testsuite properties
def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1, elapsed_times=True): _TextTestResult.__init__(self, stream, descriptions, verbosity) self.successes = [] self.callback = None self.elapsed_times = elapsed_times
def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1, elapsed_times=True, per_test_output=False, encoding='utf-8'): _TextTestResult.__init__(self, stream, descriptions, verbosity) self.successes = [] self.callback = None self.elapsed_times = elapsed_times self.per_test_output = per_test_output self.encoding = encoding self.test_index = 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
def stopTest(self, test): """ Called after execute each test method. """ _TextTestResult.stopTest(self, test) self.stop_time = time.time() if self.callback and isinstance(self.callback, collections.Callable): self.callback() self.callback = None