allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
718 stars 237 forks source link

Duplicated pytest fixtures #695

Closed skhomuti closed 1 year ago

skhomuti commented 1 year ago

Here's an example - the first test has unexpected fixture from another test

@pytest.fixture
def fixture(request):
    with allure.step(request.node.name):
        pass

def test_first(fixture):
    pass

def test_second(fixture):
    pass

I'm submitting a ...

What is the current behavior?

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

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Other information

[//]: # ( . e.g. detailed explanation, stacktraces, related issues, suggestions . how to fix, links for us to have more context, eg. Stackoverflow, Gitter etc )