Skip to content

Commit

Permalink
Test further scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 1, 2025
1 parent a0889ac commit 9672e5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/test_file_avif.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ def test_exif(self) -> None:
exif = im.getexif()
assert exif[274] == 3

@pytest.mark.parametrize("use_bytes, orientation", [(True, 1), (False, 2)])
@pytest.mark.parametrize("use_bytes", [True, False])
@pytest.mark.parametrize("orientation", [1, 2])
def test_exif_save(
self,
tmp_path: Path,
Expand Down Expand Up @@ -393,7 +394,7 @@ def test_seek(self) -> None:
with pytest.raises(EOFError):
im.seek(1)

@pytest.mark.parametrize("subsampling", ["4:4:4", "4:2:2", "4:0:0"])
@pytest.mark.parametrize("subsampling", ["4:4:4", "4:2:2", "4:2:0", "4:0:0"])
def test_encoder_subsampling(self, tmp_path: Path, subsampling: str) -> None:
with Image.open(TEST_AVIF_FILE) as im:
test_file = str(tmp_path / "temp.avif")
Expand Down

0 comments on commit 9672e5d

Please sign in to comment.