From 89a3c2835f50424e48c4b631bcb2c04424f2dea5 Mon Sep 17 00:00:00 2001 From: adam-urbanczyk Date: Tue, 26 Feb 2019 17:04:48 +0100 Subject: [PATCH] Extend sweep test coverage --- tests/TestCadQuery.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index c89c72d1..26606393 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -442,6 +442,14 @@ class TestCadQuery(BaseTest): self.assertEqual(5, result.faces().size()) self.assertEqual(7, result.edges().size()) + # Polyline path and one inner profiles + path = Workplane("XZ").polyline(pts) + + # Test defaults + result = Workplane("XY").circle(0.2).circle(0.1).sweep(path,transition='transformed') + self.assertEqual(8, result.faces().size()) + self.assertEqual(14, result.edges().size()) + # Polyline path and different transition settings for t in ('transformed','right','round'): path = Workplane("XZ").polyline(pts)