pytest.mark usefixture vs usefixtures #3972
Labels
topic: fixtures
anything involving fixtures directly or indirectly
topic: marks
related to marks, either the general marks or builtin
type: question
general question, might be closed after 2 weeks of inactivity
I know that this is something that bites me every so often, and it recently bit a colleague of mine, however when using fixtures and marking a class/function as require a fixture, it is very unintuitive to use
usefixtures
when you intend to use only a single fixture.Would it be possible to register
usefixture
as an alias forusefixtures
to avoid this confusion and a lot of head scratching?Especially because pytest does not seem to error when you use a non-existent mark.
The text was updated successfully, but these errors were encountered: