Closed afuetterer closed 4 months ago
No, I don't know why. I guess to make it consistent with multiple parametrizations, i.e. group stuff from the same groups into tuples? The differentiate between "csv", "tuple" and "list".
I know, the very first examples when using pytest do like this ("csv" style):
pytest.mark.parametrize('username,password', users)
So, keep it like this?
Yes please keep csv style.
Alright, going to merge. This means a rebase is needed for @MyPyDavid in #1039.
Description
Fixes #1052
This PR enables the
flake8-pytest-style (PT)
ruff rule as suggested in the linked issue. All violations are fixed as well in this PR.At the moment this settings needs to be set to
false
:to allow fixtures without parantheses
pytest.fixture
instead ofpytest.fixture()
. It will default totrue
in the future, according the ruff docs.needs to be set to
csv
to allow for parametrization in tests likepytest.mark.parametrize('username,password', users)
instead ofpytest.mark.parametrize(('username,password'), users)
flake8-pytest-style
suggests using tuples.What do you think?
Types of Changes
Checklist