File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,19 @@ def test_generate_solid_02(self):
1818 shaft_solid = sh .generate_solid ()
1919 self .assertIsInstance (shaft_solid , TopoDS_Solid )
2020
21+ def test_display_01 (self ):
22+ sh = Shaft ("tests/test_datasets/shaft.iges" )
23+ sh .display ()
24+
2125 def test_exception (self ):
2226 sh = Shaft ("tests/test_datasets/parameters.prm" )
2327 with self .assertRaises (Exception ):
2428 sh .generate_solid ()
2529
26- def test_display_01 (self ):
27- sh = Shaft ("tests/test_datasets/shaft.iges" )
28- sh .display ()
29-
3030 def test_display_02 (self ):
3131 sh = Shaft ("tests/test_datasets/shaft.stl" )
32- sh .display ()
32+ sh .display ()
33+
34+ def test_init (self ):
35+ sh = Shaft ("tests/test_datasets/shaft.iges" )
36+ assert sh .filename == "data/shaft.iges"
You can’t perform that action at this time.
0 commit comments