Пример #1
0
 def setUp(self):
     self.stream = StringIO.StringIO()
     self.runner = runner.TrialRunner(CapturingReporter, stream=self.stream)
     self.test = TestTrialRunner('test_empty')
Пример #2
0
 def setUp(self):
     UntilFailureTests.setUp(self)
     self.runner = runner.TrialRunner(reporter.Reporter,
                                      stream=self.stream,
                                      uncleanWarnings=True)
Пример #3
0
 def setUp(self):
     UntilFailureTests.FailAfter.count = []
     self.test = UntilFailureTests.FailAfter('test_foo')
     self.stream = NativeStringIO()
     self.runner = runner.TrialRunner(reporter.Reporter, stream=self.stream)
Пример #4
0
 def setUp(self):
     self.stream = NativeStringIO()
     self.runner = runner.TrialRunner(CapturingReporter,
                                      stream=self.stream,
                                      uncleanWarnings=True)
     self.test = TrialRunnerTests('test_empty')
Пример #5
0
 def setUp(self):
     TestUntilFailure.FailAfter.count = []
     self.test = TestUntilFailure.FailAfter('test_foo')
     self.stream = StringIO.StringIO()
     self.runner = runner.TrialRunner(reporter.Reporter, stream=self.stream)
Пример #6
0
def Run():
    return runner.TrialRunner(
        reporter.TextReporter,
        tracebackFormat='default',
    ).run(GetTestSuite())