Added AdjustmentsInfo, #150, #379

This commit is contained in:
Rhet Turnbull
2021-02-20 11:01:08 -08:00
parent b3a7869bd3
commit 5ee6affc05
7 changed files with 410 additions and 34 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -637,3 +637,18 @@ def test_is_reference(photosdb):
assert photo.isreference
photo = photosdb.get_photo(UUID_NOT_REFERENCE)
assert not photo.isreference
def test_adjustments(photosdb):
""" test adjustments/AdjustmentsInfo (not implemented for 10.14) """
from osxphotos.adjustmentsinfo import AdjustmentsInfo
photo = photosdb.get_photo(UUID_DICT["has_adjustments"])
assert photo.adjustments is None
def test_no_adjustments(photosdb):
""" test adjustments when photo has no adjusments"""
photo = photosdb.get_photo(UUID_DICT["no_adjustments"])
assert photo.adjustments is None