fixtures cannot be retrieved in pytest_runtest_makereport function for tests that are skipped during setup with the pytest.mark.skip marker #13101
Labels
status: needs information
reporter needs to provide more information; can be closed after 2 or more weeks of inactivity
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
I am trying to retrieve the fixtures when a test has been skipped with the
skip
marker.But this is impossible because pytest doesn't pass the fixture of skipped tests during setup to the pytest_runtest_makereport function
Steps to reproduce:
my_fixture
inconftest.py
fileconftest.py
fileThis piece of code doesn't work because
item.funcargs = {}
anditem.funcargs['request']
will raise an exception.pytest doesn't retrieve the fixtures of skipped tests during setup. Why?
Tested with pytest 8.3.4
The text was updated successfully, but these errors were encountered: