class documentation

class _AdaptedReporter(TestResultDecorator): (source)

View In Hierarchy

TestResult decorator that makes sure that addError only gets tests that have been adapted with a particular test adapter.
Method __init__ Construct an _AdaptedReporter.
Method add​Error See itrial.IReporter.
Method add​Expected​Failure See itrial.IReporter.
Method add​Failure See itrial.IReporter.
Method add​Skip See itrial.IReporter.
Method add​Unexpected​Success See itrial.IReporter.
Method start​Test See itrial.IReporter.
Method stop​Test See itrial.IReporter.
Instance Variable test​Adapter Undocumented

Inherited from TestResultDecorator:

Instance Variable _original​Reporter The wrapped instance of reporter.
def __init__(self, original, testAdapter): (source)
Construct an _AdaptedReporter.
Parameters
originalAn {itrial.IReporter}.
test​AdapterA callable that returns an itrial.ITestCase.
def addError(self, test, error): (source)
def addExpectedFailure(self, test, failure, todo=None): (source)
See itrial.IReporter.
Parameters
test:A pyunit.TestCase.Undocumented
failure:A failure.Failure or AssertionErrorUndocumented
todo:

A unittest.Todo or None

When todo is None a generic unittest.Todo is built.

pyunit.TestCase's run() calls this with 3 positional arguments (without todo).

Undocumented
def addFailure(self, test, failure): (source)
def addSkip(self, test, skip): (source)
def addUnexpectedSuccess(self, test, todo=None): (source)
See itrial.IReporter.
Parameters
test:A pyunit.TestCase.Undocumented
todo:

A unittest.Todo or None

When todo is None a generic unittest.Todo is built.

pyunit.TestCase's run() calls this with 2 positional arguments (without todo).

Undocumented
testAdapter = (source)

Undocumented