Added path_derivatives for Photos <= 4
This commit is contained in:
@@ -425,8 +425,15 @@ def test_path_derivatives(photosdb):
|
||||
|
||||
photos = photosdb.photos(uuid=[UUID_DICT["has_adjustments"]])
|
||||
p = photos[0]
|
||||
path = p.path_derivatives
|
||||
assert path == []
|
||||
derivs = sorted(
|
||||
[
|
||||
"/resources/proxies/derivatives/00/00/1/Y6OofYkbR96spbS6XgwOQw_thumb_1.jpg",
|
||||
"/resources/proxies/derivatives/00/00/1/Y6OofYkbR96spbS6XgwOQw_mini_1.jpg",
|
||||
]
|
||||
)
|
||||
path = sorted(p.path_derivatives)
|
||||
for i, p in enumerate(path):
|
||||
assert p.endswith(derivs[i])
|
||||
|
||||
|
||||
def test_path_edited2(photosdb):
|
||||
|
||||
Reference in New Issue
Block a user