def __init__(self, output='.', outsuffix=None, stream=sys.stderr, descriptions=True, verbosity=1, elapsed_times=True): TextTestRunner.__init__(self, stream, descriptions, verbosity) self.verbosity = verbosity self.output = output if outsuffix: self.outsuffix = outsuffix else: self.outsuffix = time.strftime("%Y%m%d%H%M%S") self.elapsed_times = elapsed_times
def __init__(self, output='.', outsuffix=None, stream=sys.stderr, descriptions=True, verbosity=1, elapsed_times=True, per_test_output=False, encoding='utf-8'): TextTestRunner.__init__(self, stream, descriptions, verbosity) self.verbosity = verbosity self.output = output if outsuffix: self.outsuffix = outsuffix else: self.outsuffix = time.strftime("%Y%m%d%H%M%S") self.elapsed_times = elapsed_times self.per_test_output = per_test_output self.encoding = encoding
def __init__(self, output='.', outsuffix=None, stream=sys.stderr, descriptions=True, verbosity=1, elapsed_times=True, failfast=False, encoding=None, namingfun=None): TextTestRunner.__init__(self, stream, descriptions, verbosity, failfast=failfast) self.verbosity = verbosity self.output = output self.encoding = encoding self.namingfun = namingfun if outsuffix: self.outsuffix = outsuffix else: self.outsuffix = time.strftime("%Y%m%d%H%M%S") self.elapsed_times = elapsed_times