We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd731a commit e027adcCopy full SHA for e027adc
allure-pytest/src/helper.py
@@ -10,7 +10,9 @@ class AllureTitleHelper:
10
def decorate_as_title(self, test_title):
11
def decorator(func):
12
# pytest.fixture wraps function, so we need to get it directly
13
- if getattr(func, '__pytest_wrapped__', None):
+ if hasattr(func, "_get_wrapped_function"): # pytest >= 8.4
14
+ function = func._get_wrapped_function()
15
+ elif hasattr(func, "__pytest_wrapped__"): # pytest < 8.4
16
function = func.__pytest_wrapped__.obj
17
else:
18
function = func
0 commit comments