Skip to content

Dynamic fixture dependencies are now shown in setuponly and setupshow #14287

@Anton3

Description

@Anton3

Minimal reproducer:

import pytest

@pytest.fixture()
def dynamically_requested_fixture():
    pass

@pytest.fixture()
def dependent_fixture(request):
    request.getfixturevalue('dynamically_requested_fixture')

def test_dyn(dependent_fixture):
    pass

Expected output with --setuponly:

SETUP    F dependent_fixture (fixtures used: dynamically_requested_fixture)

Actual output:

SETUP    F dependent_fixture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions