Skip to content

Commit

Permalink
Fix PT014: duplicate test cases in pytest.mark.parametrize
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 17, 2024
1 parent 6f506d2 commit 5c282d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/test_file_jpeg2k.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c282d0

Please sign in to comment.