Changed AlbumInfo and FolderInfo interface to maintain backwards compatibility with PhotosDB.albums
This commit is contained in:
@@ -15,7 +15,7 @@ def test_album_names():
|
||||
import osxphotos
|
||||
|
||||
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
||||
albums = photosdb.album_names
|
||||
albums = photosdb.albums
|
||||
|
||||
assert len(albums) == len(ALBUMS)
|
||||
for album in albums:
|
||||
@@ -26,7 +26,7 @@ def test_albums_names_shared():
|
||||
import osxphotos
|
||||
|
||||
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
|
||||
albums_shared = photosdb.album_names_shared
|
||||
albums_shared = photosdb.albums_shared
|
||||
|
||||
assert len(albums_shared) == 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user