pytest-use-fixtures-without-parameters (PT026)
Added in v0.0.208 · Related issues · View source
Derived from the flake8-pytest-style linter.
Fix is always available.
What it does
Checks for @pytest.mark.usefixtures() decorators that aren't passed any
arguments.
Why is this bad?
A @pytest.mark.usefixtures() decorator that isn't passed any arguments is
useless and should be removed.
Example
Use instead: