2024-06-20 23:29:18 -07:00
|
|
|
import unittest
|
2024-06-24 11:13:11 -07:00
|
|
|
import cadquery as Cq
|
2024-06-20 23:29:18 -07:00
|
|
|
import nhf.touhou.houjuu_nue as M
|
|
|
|
|
|
|
|
class Test(unittest.TestCase):
|
|
|
|
|
2024-06-24 11:13:11 -07:00
|
|
|
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"
|
2024-06-20 23:29:18 -07:00
|
|
|
def test_wing_root(self):
|
|
|
|
p = M.Parameters()
|
2024-06-24 11:13:11 -07:00
|
|
|
obj = p.wing_root()
|
|
|
|
assert isinstance(obj.solids(), Cq.Solid), "Wing root must be in one piece"
|
2024-06-20 23:45:24 -07:00
|
|
|
def test_wings(self):
|
2024-06-20 23:29:18 -07:00
|
|
|
p = M.Parameters()
|
2024-06-20 23:45:24 -07:00
|
|
|
p.wing_r1()
|
2024-06-23 22:27:15 -07:00
|
|
|
def test_harness(self):
|
|
|
|
p = M.Parameters()
|
|
|
|
p.harness_assembly()
|
2024-06-20 23:29:18 -07:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|