Initial support for Ventura developer preview (#715)

This commit is contained in:
Rhet Turnbull
2022-06-17 12:11:17 -07:00
committed by GitHub
parent b3a935bd90
commit 5f63cccc7c
209 changed files with 3131 additions and 401 deletions

View File

@@ -4083,7 +4083,13 @@ def test_faceinfo_v5(photosdb5, uuid_dict):
assert len(faces) == len(uuid_dict[uuid])
for face in faces:
assert face.uuid in uuid_dict[uuid]
assert face.asdict() == uuid_dict[uuid][face.uuid]
# test by keys instead of dict == dict because Monterey+ dropped support for some of the face details
# and I didn't want to regenerate all the test data (e.g.eye, mouth coordinates)
face_dict = face.asdict()
for key in face_dict:
if key == "yaw":
continue # yaw set to 0 as it's not in Ventura
assert face_dict[key] == uuid_dict[uuid][face.uuid][key]
def test_faceinfo_v5_no_face(photosdb5):
@@ -4103,7 +4109,11 @@ def test_faceinfo_v4(photosdb4, uuid_dict):
assert len(faces) == len(uuid_dict[uuid])
for face in faces:
assert face.uuid in uuid_dict[uuid]
assert face.asdict() == uuid_dict[uuid][face.uuid]
# test by keys instead of dict == dict because Monterey+ dropped support for some of the face details
# and I didn't want to regenerate all the test data (e.g.eye, mouth coordinates)
face_dict = face.asdict()
for key in face_dict:
assert face_dict[key] == uuid_dict[uuid][face.uuid][key]
def test_faceinfo_v4_no_face(photosdb4):