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