Classes | |
class | Kind |
Public Member Functions | |
def | __new__ (cls, id=None, name=None, kind=None, stdout=None, stderr=None, skip_reason=None, traceback=None) |
def | updated (self, name=None, kind=None, stdout=None, stderr=None, skip_reason=None, traceback=None) |
A serializable result of a single test case. Attributes: id (object): Any serializable object used to denote the identity of this test case. name (str or None): A human-readable name of the test case. kind (CaseResult.Kind): The kind of test result. stdout (object or None): Output on stdout, or None if nothing was captured. stderr (object or None): Output on stderr, or None if nothing was captured. skip_reason (object or None): The reason the test was skipped. Must be something if self.kind is CaseResult.Kind.SKIP, else None. traceback (object or None): The traceback of the test. Must be something if self.kind is CaseResult.Kind.{ERROR, FAILURE, EXPECTED_FAILURE}, else None.
Definition at line 32 of file _result.py.
def tests._result.CaseResult.__new__ | ( | cls, | |
id = None , |
|||
name = None , |
|||
kind = None , |
|||
stdout = None , |
|||
stderr = None , |
|||
skip_reason = None , |
|||
traceback = None |
|||
) |
Helper keyword constructor for the namedtuple. See this class' attributes for information on the arguments.
Definition at line 59 of file _result.py.
def tests._result.CaseResult.updated | ( | self, | |
name = None , |
|||
kind = None , |
|||
stdout = None , |
|||
stderr = None , |
|||
skip_reason = None , |
|||
traceback = None |
|||
) |
Get a new validated CaseResult with the fields updated. See this class' attributes for information on the arguments.
Definition at line 93 of file _result.py.