Construct a TextTestResult. Subclasses should accept **kwargs to ensure compatibility as the interface changes.
(self, stream, descriptions, verbosity, *, durations=None)
| 38 | separator2 = '-' * 70 |
| 39 | |
| 40 | def __init__(self, stream, descriptions, verbosity, *, durations=None): |
| 41 | """Construct a TextTestResult. Subclasses should accept **kwargs |
| 42 | to ensure compatibility as the interface changes.""" |
| 43 | super(TextTestResult, self).__init__(stream, descriptions, verbosity) |
| 44 | self.stream = stream |
| 45 | self.showAll = verbosity > 1 |
| 46 | self.dots = verbosity == 1 |
| 47 | self.descriptions = descriptions |
| 48 | self._theme = get_theme(tty_file=stream).unittest |
| 49 | self._newline = True |
| 50 | self.durations = durations |
| 51 | |
| 52 | def getDescription(self, test): |
| 53 | doc_first_line = test.shortDescription() |