-
Notifications
You must be signed in to change notification settings - Fork 252
Open
Description
I'm submitting a ...
- feature request
What is the current behavior?
allure-python/allure-python-commons/src/_allure.py
Lines 45 to 46 in 50cb0ec
def feature(*features): | |
return label(LabelType.FEATURE, *features) |
Features values set as is.
What is the expected behavior?
Cast features
to string
What is the motivation / use case for changing the behavior?
For easily cast to feature name from dataclasses
Its look better
@allure.feature(Features.some_feature1, Features.some_feature2)
vs
@allure.feature(str(Features.some_feature1), str(Features.some_feature2))
Please tell us about your environment:
- Allure version: 2.1.0
- Test framework: pytest@6.2.4
- Allure adaptor: allure-pytest@2.9.43