Skip to content

Commit 9acf580

Browse files
Fabien Servantcbentejac
authored andcommitted
Update tests
1 parent 1f2521e commit 9acf580

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pyTests/sfmData/test_sfmdata.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# - ImageInfos& getAncestors()
1717
# - Poses& getPoses() => DONE
1818
# - Rigs& getRigs() => DONE
19-
# - Intrinsics& getIntrinsics() => DONE / Intrinsics derived classes not fully binded
19+
# - Intrinsics& getIntrinsics() => DONE
2020
# - Landmarks& getLandmarks() => DONE
2121
# - Constraints2D& getConstraints2D() => DONE
2222
# - RotationPriors& getRotationPriors() => DONE
@@ -102,12 +102,11 @@ def test_sfmdata_get_intrinsics():
102102
assert len(intrinsics) == 0, \
103103
"The SfMData object is empty, there should not be any Intrinsic in it"
104104

105-
# TODO: Add Intrinsic object to the list once derived classes are fully binded
106-
# Create an Intrinsic object and add it to the list
107-
# intrinsic = av.IntrinsicBase()
108-
# intrinsics[INTRINSIC_ID] = intrinsic
109-
# assert len(data.getIntrinsics()) == len(intrinsics) == 1, \
110-
# "The list of Intrinsics should have been updated"
105+
#Create an Intrinsic object and add it to the list
106+
intrinsic = av.Pinhole()
107+
intrinsics[INTRINSIC_ID] = intrinsic
108+
assert len(data.getIntrinsics()) == len(intrinsics) == 1, \
109+
"The list of Intrinsics should have been updated"
111110

112111

113112
def test_sfmdata_get_landmarks():

0 commit comments

Comments
 (0)