From 5bc23702148adf89cc7f5ff00b16862d76ccb053 Mon Sep 17 00:00:00 2001 From: Lior Yona <102905378+lioryona1995@users.noreply.github.com> Date: Wed, 14 May 2025 13:54:59 +0300 Subject: [PATCH] Update utils.py --- allure-pytest/src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allure-pytest/src/utils.py b/allure-pytest/src/utils.py index 1e07cb49..1d812b90 100644 --- a/allure-pytest/src/utils.py +++ b/allure-pytest/src/utils.py @@ -128,7 +128,7 @@ def allure_name(item, parameters, param_id=None): def allure_full_name(item: pytest.Item): package = allure_package(item) class_name = f".{item.parent.name}" if isinstance(item.parent, pytest.Class) else '' - test = item.originalname if isinstance(item, pytest.Function) else item.name.split("[")[0] + test = item.name full_name = f'{package}{class_name}#{test}' return full_name