Added path_derivatives for Photos 5, issue #50

This commit is contained in:
Rhet Turnbull
2021-05-08 15:11:59 -07:00
parent b23cfa32bb
commit 63834ab8ab
14 changed files with 113 additions and 5 deletions

View File

@@ -419,6 +419,16 @@ def test_path_edited1(photosdb):
assert os.path.exists(path)
def test_path_derivatives(photosdb):
# test path_derivatives (not currently implemented for Photos <= 4)
import os.path
photos = photosdb.photos(uuid=[UUID_DICT["has_adjustments"]])
p = photos[0]
path = p.path_derivatives
assert path == []
def test_path_edited2(photosdb):
# test an invalid edited path
photos = photosdb.photos(uuid=[UUID_DICT["no_adjustments"]])