mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-07 02:44:14 +03:00
add test
This commit is contained in:
parent
af1d2a51b3
commit
f7fc268a77
|
@ -309,7 +309,7 @@ class TestFileAvif:
|
|||
assert exif[274] == 3
|
||||
|
||||
@pytest.mark.parametrize("use_bytes", [True, False])
|
||||
@pytest.mark.parametrize("orientation", [1, 2])
|
||||
@pytest.mark.parametrize("orientation", [1, 2, 3, 4, 5, 6, 7, 8])
|
||||
def test_exif_save(
|
||||
self,
|
||||
tmp_path: Path,
|
||||
|
@ -327,6 +327,7 @@ class TestFileAvif:
|
|||
if orientation == 1:
|
||||
assert "exif" not in reloaded.info
|
||||
else:
|
||||
assert reloaded.getexif()[274] == orientation
|
||||
assert reloaded.info["exif"] == exif_data
|
||||
|
||||
def test_exif_without_orientation(self, tmp_path: Path) -> None:
|
||||
|
|
Loading…
Reference in New Issue
Block a user