From 0c42f71c9fa3f05c91c3ede704bce7e9536a60d3 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Wed, 26 Jun 2024 09:44:02 -0400 Subject: [PATCH] fix: Don't user `assert` in unit tests --- nhf/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nhf/test.py b/nhf/test.py index 37a750d..5695c41 100644 --- a/nhf/test.py +++ b/nhf/test.py @@ -7,8 +7,9 @@ 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" + self.assertIsInstance( + j.val().solids(), Cq.Solid, + msg="Hirth joint must be in one piece") def test_joints_hirth_assembly(self): nhf.joints.hirth_assembly() def test_joints_comma_assembly(self):