Skip to content

Commit f7fc268

Browse files
committed
add test
1 parent af1d2a5 commit f7fc268

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/test_file_avif.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def test_exif(self) -> None:
309309
assert exif[274] == 3
310310

311311
@pytest.mark.parametrize("use_bytes", [True, False])
312-
@pytest.mark.parametrize("orientation", [1, 2])
312+
@pytest.mark.parametrize("orientation", [1, 2, 3, 4, 5, 6, 7, 8])
313313
def test_exif_save(
314314
self,
315315
tmp_path: Path,
@@ -327,6 +327,7 @@ def test_exif_save(
327327
if orientation == 1:
328328
assert "exif" not in reloaded.info
329329
else:
330+
assert reloaded.getexif()[274] == orientation
330331
assert reloaded.info["exif"] == exif_data
331332

332333
def test_exif_without_orientation(self, tmp_path: Path) -> None:

0 commit comments

Comments
 (0)