From: dbv Date: Mon, 23 Jan 2017 12:38:58 +0000 (+0300) Subject: Added test case for Issue #1998 X-Git-Tag: V_2.7.0~314 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=559d075eee328a47a411cbb7542031138e5d7567;p=modules%2Fshaper.git Added test case for Issue #1998 --- diff --git a/src/ModelAPI/CMakeLists.txt b/src/ModelAPI/CMakeLists.txt index 6fbe8f77e..0e90444bc 100644 --- a/src/ModelAPI/CMakeLists.txt +++ b/src/ModelAPI/CMakeLists.txt @@ -141,4 +141,5 @@ ADD_UNIT_TESTS(TestConstants.py Test1512.py TestDoubleArray.py Test1757.py + Test1998.py ) diff --git a/src/ModelAPI/Test/Test1998.py b/src/ModelAPI/Test/Test1998.py new file mode 100644 index 000000000..3c67c6273 --- /dev/null +++ b/src/ModelAPI/Test/Test1998.py @@ -0,0 +1,14 @@ +from salome.shaper import model + +model.begin() +partSet = model.moduleDocument() +Part_1 = model.addPart(partSet) +Part_1_doc = Part_1.document() +Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY")) +SketchLine_1 = Sketch_1.addLine(-106.3464837049742, -78.0445969125214, -108.0617495711835, 165.5231560891939) +model.do() +Edge_1 = model.addEdge(Part_1_doc, [model.selection("EDGE", "Sketch_1/Edge-SketchLine_1")]) +Vertex_1 = model.addVertex(Part_1_doc, [model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1e"), model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1s")]) +model.end() + +assert(model.checkPythonDump())