Skip to content

Commit 8377d13

Browse files
authored
Merge pull request #70 from ggurioli/branch_tests
Adding tests in test_shaft.py
2 parents 8fae22d + 605ac06 commit 8377d13

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/test_shaft.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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_exception(self):
22-
sh = Shaft("tests/test_datasets/parameters.prm")
23-
with self.assertRaises(Exception):
24-
sh.generate_solid()
25-
2621
def test_display_01(self):
2722
sh = Shaft("tests/test_datasets/shaft.iges")
2823
sh.display()
2924

3025
def test_display_02(self):
3126
sh = Shaft("tests/test_datasets/shaft.stl")
32-
sh.display()
27+
sh.display()
28+
29+
def test_exception(self):
30+
sh = Shaft("tests/test_datasets/parameters.prm")
31+
with self.assertRaises(Exception):
32+
sh.generate_solid()
33+
34+
def test_init(self):
35+
sh = Shaft("tests/test_datasets/shaft.iges")
36+
assert sh.filename == "tests/test_datasets/shaft.iges"

0 commit comments

Comments
 (0)