Skip to content

Commit

Permalink
update python annotation test
Browse files Browse the repository at this point in the history
  • Loading branch information
fraguada committed Jul 17, 2024
1 parent d43ad7f commit adbebc8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/python/test_Annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@ def test_readAnnotations(self):
for obj in objects:
geo = obj.Geometry

match obj.Geometry.ObjectType:
case rhino3dm.ObjectType.Annotation:
if not any(x in geo.PlainText for x in plainText):
if geo.ObjectType == rhino3dm.ObjectType.Annotation:
if not any(x in geo.PlainText for x in plainText):
self.fail("Annotation plain text not or not correct")
case rhino3dm.ObjectType.TextDot:
if not any(x in geo.Text for x in plainText):
elif geo.ObjectType == rhino3dm.ObjectType.TextDot:
if not any(x in geo.Text for x in plainText):
self.fail("TextDot text not or not correct")





if __name__ == '__main__':
print("running tests")
unittest.main()
Expand Down

0 comments on commit adbebc8

Please sign in to comment.