Fix for incorrect path for shared photos on Ventura, #883 (#893)

Fixes PhotoInfo.path to return the correct path for shared photos on Ventura (#883)
This commit is contained in:
Rhet Turnbull
2023-01-01 09:26:54 -07:00
committed by GitHub
parent dbdeb069be
commit eb0251b198
236 changed files with 1937 additions and 34 deletions

View File

@@ -0,0 +1,16 @@
"""Test shared iCloud photos on macOS 13.1"""
import pytest
import osxphotos
PHOTOS_DB = "./tests/Test-Cloud-13.1.photoslibrary//database/photos.db"
def test_query_shared_path():
"""Test shared path is not None for shared photos"""
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
for p in photosdb.photos():
if not p.shared or p.ismissing:
continue
assert p.path
assert p.path_derivatives