Test Case¤
TestCase
dataclass
¤
TestCase(
node_id: str,
path: str,
name: str,
doc: str,
markers: List[str],
parameters: Dict[str, str],
node_type: str = "case",
module: Optional[str] = None,
suite: Optional[str] = None,
function: Optional[str] = None,
)
A collected test case.
function
class-attribute
instance-attribute
¤
The function name (optional).
module
class-attribute
instance-attribute
¤
The module name where the test case is defined (optional).
node_type
class-attribute
instance-attribute
¤
node_type: str = 'case'
The node type. Always set to 'case'.
parameters
instance-attribute
¤
Test parameters names and types. Each key is a parameter name and each value is a parameter type as a string.