From c5ee923561d6b28a44cbd216a63df8a2d55a1100 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 11 Jan 2019 17:10:40 +0300 Subject: [PATCH] Fix for the issue #2836 : Test2409.py is not tested and not up-to-date --- src/BuildPlugin/CMakeLists.txt | 1 + src/BuildPlugin/Test/Test2409.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BuildPlugin/CMakeLists.txt b/src/BuildPlugin/CMakeLists.txt index ac7d138a2..e1a122a09 100644 --- a/src/BuildPlugin/CMakeLists.txt +++ b/src/BuildPlugin/CMakeLists.txt @@ -129,6 +129,7 @@ ADD_UNIT_TESTS(TestVertex.py TestFilling_ErrorMsg.py Test1920.py Test2398.py + Test2409.py Test2415.py Test2439.py Test2454.py diff --git a/src/BuildPlugin/Test/Test2409.py b/src/BuildPlugin/Test/Test2409.py index 2056fd386..208ab31e8 100644 --- a/src/BuildPlugin/Test/Test2409.py +++ b/src/BuildPlugin/Test/Test2409.py @@ -44,12 +44,12 @@ SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_3.result()) SketchConstraintVertical_2 = Sketch_1.setVertical(SketchLine_4.result()) model.do() -Filling_1 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Sketch_1/Edge-SketchLine_2")]) +Filling_1 = model.addFilling(Part_1_doc, [model.selection("EDGE", "Sketch_1/SketchLine_2")]) model.do() # check error is reported assert(Filling_1.feature().error() != "") -Filling_1.setBase([model.selection("EDGE", "Sketch_1/Edge-SketchLine_2"), model.selection("EDGE", "Sketch_1/Edge-SketchLine_4")]) +Filling_1.setBase([model.selection("EDGE", "Sketch_1/SketchLine_2"), model.selection("EDGE", "Sketch_1/SketchLine_4")]) model.do() # check there is no error assert(Filling_1.feature().error() == "") -- 2.39.2