From 559d075eee328a47a411cbb7542031138e5d7567 Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 23 Jan 2017 15:38:58 +0300 Subject: [PATCH] Added test case for Issue #1998 --- src/ModelAPI/CMakeLists.txt | 1 + src/ModelAPI/Test/Test1998.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/ModelAPI/Test/Test1998.py 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()) -- 2.39.2