From 0764e2b65e13abc7d8e78524bf0b5ea0111a1f57 Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Tue, 5 Mar 2019 21:34:54 +0100 Subject: [PATCH] Extended cutThruAll coverage --- tests/TestCadQuery.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index d94a49f2..58f7e942 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -839,11 +839,16 @@ class TestCadQuery(BaseTest): r = s.rect(2.0, 2.0).rect( 1.3, 1.3, forConstruction=True).vertices().circle(0.125).extrude(0.5) - # side hole, thru all - t = r.faces(">Y").workplane().circle(0.125).cutThruAll() - self.saveModel(t) + + # thru all without explicit face selection + t = r.circle(0.5).cutThruAll() self.assertEqual(11, t.faces().size()) + # side hole, thru all + t = t.faces(">Y").workplane().circle(0.125).cutThruAll() + self.saveModel(t) + self.assertEqual(13, t.faces().size()) + def testCutToFaceOffsetNOTIMPLEMENTEDYET(self): """ Tests cutting up to a given face, or an offset from a face