diff --git a/tests/sample/pictures/dir1/test1/outdoor.heic b/tests/sample/pictures/dir1/test1/outdoor.heic new file mode 100644 index 0000000..2632594 Binary files /dev/null and b/tests/sample/pictures/dir1/test1/outdoor.heic differ diff --git a/tests/test_image.py b/tests/test_image.py index 133ca51..34298aa 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -201,6 +201,15 @@ def test_get_exif_tags(): assert "datetime" not in simple assert "gps" not in simple +def test_get_heic_exif_tags(): + test_image = "outdoor.heic" + src_file = os.path.join( + CURRENT_DIR, "sample", "pictures", "dir1", "test1", test_image + ) + data = get_exif_data(src_file) + simple = get_exif_tags(data, datetime_format="%d/%m/%Y") + assert simple["Make"] == "samsung" + assert simple["datetime"] == "01/09/2024" def test_get_iptc_data(caplog): test_image = "1.jpg"