Classes | Public Member Functions | List of all members
tests._result.CaseResult Class Reference
Inheritance diagram for tests._result.CaseResult:
Inheritance graph
[legend]

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)
 

Detailed Description

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.

Member Function Documentation

◆ __new__()

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.

◆ updated()

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.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:52