From: Renaud NEDELEC Date: Mon, 2 Nov 2015 12:13:17 +0000 (+0100) Subject: [PythonAPI / sketcher] Update of setRadius test with radius modification X-Git-Tag: V_2.1.0~206^2~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e6b1f42e2dd1a1eee8be163e83589a32ee308240;p=modules%2Fshaper.git [PythonAPI / sketcher] Update of setRadius test with radius modification --- 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