fix: Don't user `assert` in unit tests
This commit is contained in:
parent
cec2f4da55
commit
0c42f71c9f
|
@ -7,8 +7,9 @@ class TestJoints(unittest.TestCase):
|
||||||
|
|
||||||
def test_joint_hirth(self):
|
def test_joint_hirth(self):
|
||||||
j = nhf.joints.hirth_joint()
|
j = nhf.joints.hirth_joint()
|
||||||
assert isinstance(j.val().solids(), Cq.Solid),\
|
self.assertIsInstance(
|
||||||
"Hirth joint must be in one piece"
|
j.val().solids(), Cq.Solid,
|
||||||
|
msg="Hirth joint must be in one piece")
|
||||||
def test_joints_hirth_assembly(self):
|
def test_joints_hirth_assembly(self):
|
||||||
nhf.joints.hirth_assembly()
|
nhf.joints.hirth_assembly()
|
||||||
def test_joints_comma_assembly(self):
|
def test_joints_comma_assembly(self):
|
||||||
|
|
Loading…
Reference in New Issue