test: Joint integrity
This commit is contained in:
parent
d5ddbc4186
commit
caf8fb477a
|
@ -1,8 +1,13 @@
|
|||
import unittest
|
||||
import cadquery as Cq
|
||||
import nhf.joints
|
||||
|
||||
class TestJoints(unittest.TestCase):
|
||||
|
||||
def test_joint_hirth(self):
|
||||
j = nhf.joints.hirth_joint()
|
||||
assert isinstance(j.val().solids(), Cq.Solid),\
|
||||
"Hirth joint must be in one piece"
|
||||
def test_joints_hirth_assembly(self):
|
||||
nhf.joints.hirth_assembly()
|
||||
def test_joints_comma_assembly(self):
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
import unittest
|
||||
import cadquery as Cq
|
||||
import nhf.touhou.houjuu_nue as M
|
||||
|
||||
class Test(unittest.TestCase):
|
||||
|
||||
def test_hs_joint_parent(self):
|
||||
p = M.Parameters()
|
||||
obj = p.hs_joint_parent()
|
||||
assert isinstance(obj.val().solids(), Cq.Solid), "H-S joint must be in one piece"
|
||||
def test_wing_root(self):
|
||||
p = M.Parameters()
|
||||
p.wing_root()
|
||||
obj = p.wing_root()
|
||||
assert isinstance(obj.solids(), Cq.Solid), "Wing root must be in one piece"
|
||||
def test_wings(self):
|
||||
p = M.Parameters()
|
||||
p.wing_r1()
|
||||
|
|
Loading…
Reference in New Issue