Cosplay/nhf/test.py

18 lines
471 B
Python
Raw Normal View History

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.joints
class TestJoints(unittest.TestCase):
2024-06-24 11:13:11 -07:00
def test_joint_hirth(self):
j = nhf.joints.hirth_joint()
assert isinstance(j.val().solids(), Cq.Solid),\
"Hirth joint must be in one piece"
2024-06-20 23:29:18 -07:00
def test_joints_hirth_assembly(self):
nhf.joints.hirth_assembly()
def test_joints_comma_assembly(self):
nhf.joints.comma_assembly()
if __name__ == '__main__':
unittest.main()