Initial support for Ventura developer preview (#715)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user