allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

Fixture into test Class are not displayed in Allure report when used parametrize fixture

Open Morena51 opened this issue 4 years ago • 0 comments

I'm submitting a ...

  • [ ] bug report

What is the current behavior?

Pytest fixture write into test class are not displayed in Allure report, if there are parametrize pytest fixture before them.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

I have parametrize pytest fixture

@pytest.fixture(scope="session", params=auth_params)
def public_api_client(request)
    pass

and fixture into test class

class TestPublic:
    @pytest.fixture(scope="class", autouse=True)
    def delete_ws(self, request):
        pass

After run tests I see that delete_ws are not displayed in Allure report. image When I delete params in public_api_client I found delete_ws fixture into set up \ tear down section. image

What is the expected behavior?

All pytest fixture are displayed in Allure report in set up \ tear down section.

Please tell us about your environment:

Other information

Morena51 avatar Feb 03 '22 20:02 Morena51