From b24ec0d4fa80f78f670b31d2aedc79ed4e7fd2d1 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 29 Sep 2023 17:46:28 +1000 Subject: [PATCH] regress test for G43 in centroid post Since the centroid post now support --no-tlo, we can test that too. --- src/Mod/Path/PathTests/TestCentroidPost.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Mod/Path/PathTests/TestCentroidPost.py b/src/Mod/Path/PathTests/TestCentroidPost.py index ab617838f9..d0544cad1f 100644 --- a/src/Mod/Path/PathTests/TestCentroidPost.py +++ b/src/Mod/Path/PathTests/TestCentroidPost.py @@ -277,16 +277,15 @@ M99 args = "--no-header --no-show-editor" gcode = postprocessor.export(postables, "gcode.tmp", args) - self.assertEqual(gcode.splitlines()[5], "M6 T2") - self.assertEqual(gcode.splitlines()[6], "M3 S3000") + self.assertEqual(gcode.splitlines()[5], "G43 H2") + self.assertEqual(gcode.splitlines()[6], "M6 T2") + self.assertEqual(gcode.splitlines()[7], "M3 S3000") # suppress TLO # - # The original centroid postprocessor does not have an - # --no-tlo option. We end up with the original gcode. - # args = "--no-header --no-tlo --no-show-editor" gcode = postprocessor.export(postables, "gcode.tmp", args) + self.assertEqual(gcode.splitlines()[5], "G43 H2") self.assertEqual(gcode.splitlines()[6], "M3 S3000") def test090(self):