Skip to content

Test Module¤

TestModule dataclass ¤

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

A collected test module (test file).

doc instance-attribute ¤

doc: str

The module docstring.

markers instance-attribute ¤

markers: List[str]

Test markers. Each marker is a string.

name instance-attribute ¤

name: str

The module name.

node_id instance-attribute ¤

node_id: str

The node ID of the test module.

node_type class-attribute instance-attribute ¤

node_type: str = 'module'

The node type. Always set to 'module'.

path instance-attribute ¤

path: str

The module file path.