fix: Don't user `assert` in unit tests

This commit is contained in:
Leni Aniva 2024-06-26 09:44:02 -04:00
parent cec2f4da55
commit 0c42f71c9f
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 3 additions and 2 deletions

View File

@ -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):