osxphotos/tests/test_shared_ventura_13_1.py
Rhet Turnbull eb0251b198
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)
2023-01-01 08:26:54 -08:00

17 lines
441 B
Python

"""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