Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion allure-pytest/src/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class AllureTitleHelper:
def decorate_as_title(self, test_title):
def decorator(func):
# pytest.fixture wraps function, so we need to get it directly
if getattr(func, '__pytest_wrapped__', None):
if hasattr(func, "_get_wrapped_function"): # pytest >= 8.4
function = func._get_wrapped_function()
elif hasattr(func, "__pytest_wrapped__"): # pytest < 8.4
function = func.__pytest_wrapped__.obj
else:
function = func
Expand Down