pytest.mark.usefixtures()
without argument gets silently ignored
#12426
Labels
good first issue
easy issue that is friendly to new contributor
topic: fixtures
anything involving fixtures directly or indirectly
Someone in my pytest training accidentally did:
but forgot to pass a fixture name. Because we do:
pytest/src/_pytest/fixtures.py
Lines 1536 to 1539 in 0070151
That results in the mark being silently ignored. IMHO, this should result in a warning or even error instead.
I think this would be a great beginner issue for someone that never contributed to pytest before. Maybe someone at the upcoming sprint wants to take a look?
The text was updated successfully, but these errors were encountered: