From e6b1f42e2dd1a1eee8be163e83589a32ee308240 Mon Sep 17 00:00:00 2001 From: Renaud NEDELEC Date: Mon, 2 Nov 2015 13:13:17 +0100 Subject: [PATCH] [PythonAPI / sketcher] Update of setRadius test with radius modification --- src/PythonAPI/Test/TestSketcherSetRadius.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/PythonAPI/Test/TestSketcherSetRadius.py b/src/PythonAPI/Test/TestSketcherSetRadius.py index d0fe52bf2..def397927 100644 --- a/src/PythonAPI/Test/TestSketcherSetRadius.py +++ b/src/PythonAPI/Test/TestSketcherSetRadius.py @@ -3,11 +3,19 @@ import model from TestSketcher import SketcherTestCase class SketcherSetRadius(SketcherTestCase): - def runTest(self): + def test_set_radius(self): circle = self.sketch.addCircle(0, 10, 20) self.sketch.setRadius(circle.result(), 30) model.do() self.assertEqual(circle.radiusData().value(), 30.0) + def test_modify_radius(self): + circle = self.sketch.addCircle(0, 10, 20) + radius = self.sketch.setRadius(circle.result(), 30) + model.do() + self.sketch.setValue(radius, 20) + model.do() + self.assertEqual(circle.radiusData().value(), 20.0) + if __name__ == "__main__": - unittest.main() \ No newline at end of file + unittest.main(verbosity=2) \ No newline at end of file -- 2.39.2