Bug report
What's wrong
I get
PT019 fixture _set without value is injected as parameter, use @pytest.mark.usefixtures instead
with
...
@pytest.mark.parametrize(("_set", "expected"), (({"key2"}, True), ({"key"}, False)))
def test_isdisjoint(
self, cls: Type[MutableMultiMapping[str]], _set: Set[str], expected: bool
) -> None:
...
How it should work
PT019 shouldn't be triggered. Replacing _set with x_set works, so the plugin incorrectly assumes that there's no value provided for _set while it is, and incorrectly suggests using @pytest.mark.usefixtures, which would make it impossible to provide it with a value.
System information
- Operating system: Gentoo/Linux
- Python version: 3.11.5
- flake8 version: 6.1.0
- flake8-pytest-style version:
flake8-pytest-style ~= 1.7.2