diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 7e122d6..49955e0 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -1059,53 +1059,53 @@ class TestCadQuery(BaseTest): self.saveModel(s) - def testAutoSimplify(self): + def testClean(self): """ - Tests the `simplify()` method which is called automatically. + Tests the `clean()` method which is called automatically. """ # make a cube with a splitter edge on one of the faces # autosimplify should remove the splitter s = Workplane("XY").moveTo(0,0).line(5,0).line(5,0).line(0,10).\ - line(-10,0).close().extrude(10) + line(-10,0).close().extrude(10, clean=True) self.assertEqual(6, s.faces().size()) # test removal of splitter caused by union operation - s = Workplane("XY").box(10,10,10).union(Workplane("XY").box(20,10,10)) + s = Workplane("XY").box(10,10,10).union(Workplane("XY").box(20,10,10), clean=True) self.assertEqual(6, s.faces().size()) # test removal of splitter caused by extrude+combine operation s = Workplane("XY").box(10,10,10).faces(">Y").\ - workplane().rect(5,10,5).extrude(20) + workplane().rect(5,10,5).extrude(20, clean=True) self.assertEqual(10, s.faces().size()) - def testNoSimplify(self): + def testNoClean(self): """ - Test the case when simplify is disabled. + Test the case when clean is disabled. """ # test disabling autoSimplify s = Workplane("XY").moveTo(0,0).line(5,0).line(5,0).line(0,10).\ - line(-10,0).close().autoSimplify(False).extrude(10) + line(-10,0).close().extrude(10, clean=False) self.assertEqual(7, s.faces().size()) - s = Workplane("XY").box(10,10,10).autoSimplify(False).\ - union(Workplane("XY").box(20,10,10)) + s = Workplane("XY").box(10,10,10).\ + union(Workplane("XY").box(20,10,10), clean=False) self.assertEqual(14, s.faces().size()) s = Workplane("XY").box(10,10,10).faces(">Y").\ - workplane().rect(5,10,5).autoSimplify(False).extrude(20) + workplane().rect(5,10,5).extrude(20, clean=False) self.assertEqual(12, s.faces().size()) - def testExplicitSimplify(self): + def testExplicitClean(self): """ - Test running of `simplify()` method explicitly. + Test running of `clean()` method explicitly. """ s = Workplane("XY").moveTo(0,0).line(5,0).line(5,0).line(0,10).\ - line(-10,0).close().autoSimplify(False).extrude(10).simplify() + line(-10,0).close().extrude(10,clean=False).clean() self.assertEqual(6, s.faces().size()) def testCup(self):