An object honouring TestResult before startTestRun/stopTestRun.
| 108 | |
| 109 | |
| 110 | class ResultWithNoStartTestRunStopTestRun(object): |
| 111 | """An object honouring TestResult before startTestRun/stopTestRun.""" |
| 112 | |
| 113 | def __init__(self): |
| 114 | self.failures = [] |
| 115 | self.errors = [] |
| 116 | self.testsRun = 0 |
| 117 | self.skipped = [] |
| 118 | self.expectedFailures = [] |
| 119 | self.unexpectedSuccesses = [] |
| 120 | self.shouldStop = False |
| 121 | |
| 122 | def startTest(self, test): |
| 123 | pass |
| 124 | |
| 125 | def stopTest(self, test): |
| 126 | pass |
| 127 | |
| 128 | def addError(self, test): |
| 129 | pass |
| 130 | |
| 131 | def addFailure(self, test): |
| 132 | pass |
| 133 | |
| 134 | def addSuccess(self, test): |
| 135 | pass |
| 136 | |
| 137 | def wasSuccessful(self): |
| 138 | return True |
| 139 | |
| 140 | |
| 141 | class BufferedWriter: |
no outgoing calls
searching dependent graphs…