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
| Name | Type | Description |
|---|---|---|
| *tags | tuple | A variable number of strings or identifiers to be associated with the test for filtering or categorization purposes. |
Returns
| Type | Description |
|---|---|
function | A decorator function that attaches the specified tags to a test class or method by updating its "tags" attribute. |