Fix PT014: duplicate test cases in pytest.mark.parametrize

This commit is contained in:
Hugo van Kemenade 2024-08-16 14:47:11 +03:00
parent 6f506d2ae3
commit 5c282d0299
2 changed files with 1 additions and 2 deletions

View File

@ -233,7 +233,7 @@ def test_layers() -> None:
("foo.jp2", {"no_jp2": True}, 0, b"\xff\x4f"),
("foo.j2k", {"no_jp2": False}, 0, b"\xff\x4f"),
("foo.jp2", {"no_jp2": False}, 4, b"jP"),
("foo.jp2", {"no_jp2": False}, 4, b"jP"),
(None, {"no_jp2": False}, 4, b"jP"),
),
)
def test_no_jp2(name: str, args: dict[str, bool], offset: int, data: bytes) -> None:

View File

@ -125,7 +125,6 @@ lint.ignore = [
"PT007", # pytest-parametrize-values-wrong-type
"PT011", # pytest-raises-too-broad
"PT012", # pytest-raises-with-multiple-statements
"PT014", # pytest-duplicate-parametrize-test-cases
"PT016", # pytest-fail-without-message
"PT017", # pytest-assert-in-except
"PT018", # pytest-composite-assertion