Fixes PhotoInfo.path to return the correct path for shared photos on Ventura (#883)
This commit is contained in:
16
tests/test_shared_ventura_13_1.py
Normal file
16
tests/test_shared_ventura_13_1.py
Normal 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
|
||||
Reference in New Issue
Block a user