From ef8b0ef87143d1e621ce028fdb46bb2894cdfd0e Mon Sep 17 00:00:00 2001 From: Markus Lampert Date: Thu, 28 Nov 2019 17:41:23 -0800 Subject: [PATCH] Reduced helix tests - they never caught anything. --- src/Mod/Path/PathTests/TestPathHelix.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Path/PathTests/TestPathHelix.py b/src/Mod/Path/PathTests/TestPathHelix.py index 9f72ab4cc2..de417c325c 100644 --- a/src/Mod/Path/PathTests/TestPathHelix.py +++ b/src/Mod/Path/PathTests/TestPathHelix.py @@ -34,6 +34,7 @@ PathLog.trackModule(PathLog.thisModule()) class TestPathHelix(PathTestUtils.PathTestBase): + RotateBy = 45 def setUp(self): self.clone = None @@ -69,7 +70,7 @@ class TestPathHelix(PathTestUtils.PathTestBase): proxy = op.Proxy model = self.job.Model.Group[0] - for deg in range(5, 360, 5): + for deg in range(self.RotateBy, 360, self.RotateBy): model.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0) for base in op.Base: model = base[0] @@ -82,7 +83,7 @@ class TestPathHelix(PathTestUtils.PathTestBase): def test03(self): '''Verify Helix generates proper holes for rotated base model''' - for deg in range(5, 360, 5): + for deg in range(self.RotateBy, 360, self.RotateBy): self.tearDown() self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd') self.doc.Body.Placement.Rotation = FreeCAD.Rotation(deg, 0, 0) @@ -103,7 +104,7 @@ class TestPathHelix(PathTestUtils.PathTestBase): def test04(self): '''Verify Helix generates proper holes for rotated clone base model''' - for deg in range(5, 360, 5): + for deg in range(self.RotateBy, 360, self.RotateBy): self.tearDown() self.doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_holes00.fcstd') self.clone = Draft.clone(self.doc.Body)