Updated tests for Mojave

This commit is contained in:
Rhet Turnbull
2020-10-05 06:16:35 -07:00
parent 5f14349964
commit 6413342bdb
9 changed files with 20 additions and 10 deletions

View File

@@ -1,8 +1,6 @@
import pytest
# TODO: put some of this code into a pre-function
PHOTOS_DB = "./tests/Test-10.14.6.photoslibrary/database/photos.db"
PHOTOS_DB_PATH = "/Test-10.14.6.photoslibrary/database/photos.db"
PHOTOS_LIBRARY_PATH = "/Test-10.14.6.photoslibrary"
@@ -16,6 +14,10 @@ ALBUM_DICT = {
}
PHOTOS_DB_LEN = 13
PHOTOS_NOT_IN_TRASH_LEN = 12
PHOTOS_IN_TRASH_LEN = 1
def test_album_names():
import osxphotos
@@ -69,4 +71,4 @@ def test_not_shared():
photosdb = osxphotos.PhotosDB(dbfile=PHOTOS_DB)
photos = [p for p in photosdb.photos() if not p.shared]
assert len(photos) == 7
assert len(photos) == PHOTOS_NOT_IN_TRASH_LEN