class documentation

class twisted.trial.reporter._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.
Instance Variable testAdapter Undocumented
Method addError See itrial.IReporter.
Method addExpectedFailure See itrial.IReporter.
Method addFailure See itrial.IReporter.
Method addSkip See itrial.IReporter.
Method addUnexpectedSuccess See itrial.IReporter.
Method startTest See itrial.IReporter.
Method stopTest See itrial.IReporter.

Inherited from TestResultDecorator:

Instance Variable _originalReporter The wrapped instance of reporter.
def __init__(self, original, testAdapter): (source)

Construct an _AdaptedReporter.

ParametersoriginalAn {itrial.IReporter}.
testAdapterA callable that returns an itrial.ITestCase.
testAdapter = (source)

Undocumented

def addError(self, test, error): (source)
def addExpectedFailure(self, test, failure, todo=None): (source)

See itrial.IReporter.

ParameterstestUndocumented (type: A pyunit.TestCase.)
failureUndocumented (type: A failure.Failure or AssertionError)
todoUndocumented (type: 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).

)
def addFailure(self, test, failure): (source)
def addSkip(self, test, skip): (source)
def addUnexpectedSuccess(self, test, todo=None): (source)

See itrial.IReporter.

ParameterstestUndocumented (type: A pyunit.TestCase.)
todoUndocumented (type: 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).

)
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.