File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 21
21
import unittest
22
22
23
23
from OCC .Core .BRepPrimAPI import BRepPrimAPI_MakeTorus
24
+ from OCC .Core .TopoDS import TopoDS_Compound
24
25
25
26
from OCC .Extend .DataExchange import (read_step_file ,
26
27
read_step_file_with_names_colors ,
@@ -56,8 +57,11 @@ def test_read_step_file(self):
56
57
57
58
58
59
def test_read_step_file_multiple_shape_as_root (self ):
59
- read_step_file (STEP_MULTIPLE_ROOT , as_compound = True )
60
- read_step_file (STEP_MULTIPLE_ROOT , as_compound = False )
60
+ t = read_step_file (STEP_MULTIPLE_ROOT , as_compound = True )
61
+ self .assertTrue (isinstance (t , TopoDS_Compound ))
62
+
63
+ l = read_step_file (STEP_MULTIPLE_ROOT , as_compound = False )
64
+ self .assertEqual (len (l ), 3 )
61
65
62
66
63
67
def test_read_step_file_names_colors (self ):
You can’t perform that action at this time.
0 commit comments