Closed
Description
Someone in my pytest training accidentally did:
import pytest
@pytest.mark.usefixtures()
def test_fixt():
pass
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?