Skip to content

Test Suite¤

TestSuite dataclass ¤

TestSuite(
    node_id: str,
    name: str,
    module: str,
    path: str,
    doc: str,
    markers: List[str],
    node_type: str = "suite",
)

A collected test suite (test class).

doc instance-attribute ¤

doc: str

The suite docstring.

markers instance-attribute ¤

markers: List[str]

Test markers. Each marker is a string.

module instance-attribute ¤

module: str

The name of the module where the suite is defined.

name instance-attribute ¤

name: str

The suite name, i.e., the name of the class.

node_id instance-attribute ¤

node_id: str

The node ID of the test suite.

node_type class-attribute instance-attribute ¤

node_type: str = 'suite'

The node type. Always set to 'suite'.

path instance-attribute ¤

path: str

The name of the file where the suite is defined.