Fix PT006 autofix of parametrize name strings like ' first, , second ' (#1591)

This commit is contained in:
Ran Benita
2023-01-03 15:12:09 +02:00
committed by GitHub
parent b9e92affb1
commit ebb31dc29b
5 changed files with 83 additions and 32 deletions

View File

@@ -11,6 +11,11 @@ def test_csv(param1, param2):
...
@pytest.mark.parametrize(" param1, , param2 , ", [(1, 2), (3, 4)])
def test_csv_with_whitespace(param1, param2):
...
@pytest.mark.parametrize(("param1", "param2"), [(1, 2), (3, 4)])
def test_tuple(param1, param2):
...