def testrail(*ids):
"""
Decorator to mark tests with testcase ids.
ie. @testrail('C123', 'C12345')
:return pytest.mark:
"""
deprecation_msg = ('pytest_testrail: the @testrail decorator is deprecated and will be removed. Please use the '
'@pytestrail.case decorator instead.')
warnings.warn(deprecation_msg, DeprecatedTestDecorator)
return pytestrail.case(*ids)
评论列表
文章目录