Skip to main content

tag

Decorator to add tags to a test class or method.

def tag(
*tags: tuple
) - > function

Decorator to add tags to a test class or method.

Parameters

NameTypeDescription
*tagstupleA variable number of strings or identifiers to be associated with the test for filtering or categorization purposes.

Returns

TypeDescription
functionA decorator function that attaches the specified tags to a test class or method by updating its "tags" attribute.