diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 7af014bb..07c38945 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -2066,14 +2066,14 @@ class TestCadQuery(BaseTest): # Ensure it produces a solid with the correct volume result = Workplane("XY").slot(4,1,0).extrude(1) - self.assertAlmostEqual(result.val().Volume(), 3.785398163) + self.assertAlmostEqual(result.val().Volume(), 3.785398163, decimal_places) # Test for proper expected behaviour when cutting box = Workplane("XY").box(5,5,1) result = box.faces(">Z").workplane().slot(4,1,0).cutThruAll() - self.assertAlmostEqual(result.val().Volume(), 21.214601837) + self.assertAlmostEqual(result.val().Volume(), 21.214601837, decimal_places) result = box.faces(">Z").workplane().slot(4,1,0).cutBlind(-0.5) - self.assertAlmostEqual(result.val().Volume(), 23.107300918) + self.assertAlmostEqual(result.val().Volume(), 23.107300918, decimal_places) # Test to see if slot is rotated correctly result = Workplane("XY").slot(4,1,45).extrude(1)