]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2027 Sketcher Trim Feature: unit-tests
authornds <nds@opencascade.com>
Tue, 4 Apr 2017 07:42:11 +0000 (10:42 +0300)
committernds <nds@opencascade.com>
Tue, 4 Apr 2017 07:42:11 +0000 (10:42 +0300)
16 files changed:
src/SketchPlugin/CMakeLists.txt
src/SketchPlugin/Test/TestTrimArc01.py
src/SketchPlugin/Test/TestTrimArc02.py
src/SketchPlugin/Test/TestTrimArc03.py
src/SketchPlugin/Test/TestTrimArc04.py
src/SketchPlugin/Test/TestTrimArc05.py
src/SketchPlugin/Test/TestTrimArc06.py
src/SketchPlugin/Test/TestTrimArc07.py
src/SketchPlugin/Test/TestTrimCircle01.py
src/SketchPlugin/Test/TestTrimCircle02.py
src/SketchPlugin/Test/TestTrimCircle03.py
src/SketchPlugin/Test/TestTrimCircle04.py
src/SketchPlugin/Test/TestTrimCircle05.py
src/SketchPlugin/Test/TestTrimCircleAndArc01.py
src/SketchPlugin/Test/TestTrimLine01.py
src/SketchPlugin/Test/TestTrimLine02.py

index 96e7591c95559ced89aec8c2bf7a22df443aecd3..75fe9e99392841d1f5cad66aefb88dcaacc5b1c8 100644 (file)
@@ -163,4 +163,19 @@ ADD_UNIT_TESTS(TestSketchPointLine.py
                Test1673.py
                Test1924.py
                Test1966.py
-               Test1967.py)
+               Test1967.py
+               TestTrimArc01.py
+               TestTrimArc02.py
+               TestTrimArc03.py
+               TestTrimArc04.py
+               TestTrimArc05.py
+               TestTrimArc06.py
+               TestTrimArc07.py
+               TestTrimCircle01.py
+               TestTrimCircle02.py
+               TestTrimCircle03.py
+               TestTrimCircle04.py
+               TestTrimCircle05.py
+               TestTrimCircleAndArc01.py
+               TestTrimLine01.py
+               TestTrimLine02.py)
index c7a2e29cac1956baaa4a1b9d0289392b0e3cdb95..a8e63cff0ec7c82693c667a01428d822cbcf95ae 100644 (file)
@@ -93,4 +93,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 4b1cbf4b6527ee7f24334abadf1321d6332bdf92..9098e7413fb13ccda2634d4fae92a1f0897a3f7c 100644 (file)
@@ -98,4 +98,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 55c17601b299cd180c4e33b25b340d563adef8f1..1f8f0253dd2668b82b4c8c352be2d5b8fbf29e98 100644 (file)
@@ -102,4 +102,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index c694ef4901af97cae12529597ea60f708525da3a..b56d6bd1fb5856fd3540af54e5b39853ca188719 100644 (file)
@@ -102,4 +102,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 1bf8ae699c771f22e5b47e3b2c071feeaaa2e56a..c8fd1044a25803ce5780008c5eb1862459f138bc 100644 (file)
@@ -103,4 +103,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 610946cb31f46018d9bc4255756141f1c9b3c532..658998900f184dc5690012371886618293807116 100644 (file)
@@ -102,4 +102,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index b94d921b8e01e9d28c922389427397ea56c65a1c..a8099f486e3b676cf581b2e2ddcead94cf5e01cd 100644 (file)
@@ -53,14 +53,6 @@ model.do()
 SketchTrim = Sketch.addTrim(SketchArc_1, Sketch.to2D(GeomPoint))
 SketchTrim.execute()
 
-
-# Another case
-#GeomPoint = geom.Pnt2d(60, 50)
-#model.do()
-#SketchTrim = Sketch.addTrim(SketchArc_1, GeomPoint)
-#SketchTrim.execute()
-
-
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index f9e270d050bcbcd40b876e9c1a2f4e348ff57e61..cbd7509cfecf9b5ea530e4e81390d1c3af24bdc3 100644 (file)
@@ -90,4 +90,4 @@ assert(len(Intersection_Points_3) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index e843c55da03a183f3680c37e060a8e04b795fbf7..b85aef8b80e20a149a79135a7e35d0b82efe37f3 100644 (file)
@@ -89,4 +89,4 @@ assert(len(Intersection_Points_3) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index e95823b037fa14457a067203f7c7d53c336f5b06..3e426dcd975d1f0c1eb7799fc5d000188f029bed 100644 (file)
@@ -94,4 +94,4 @@ assert(len(Intersection_Points_3) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 57db652282fac5b317571e57a2cfbb045d8f97e7..0d3adb8be1f4f29391238b12cf96f11388c5f9cf 100644 (file)
@@ -95,4 +95,4 @@ assert(len(Intersection_Points_3) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index d53d89b931ff6dcf7ef87c2203a7148d4872c831..5bd00a673f47c76bcda39c658d160c4144172c20 100644 (file)
@@ -99,4 +99,4 @@ assert(len(Intersection_Points_3) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 1bb501b1e21aba4832bc2f1b8af8c95e65bb0063..b4885a63532e9247c7aacc72d3e7d5062c279476 100644 (file)
@@ -90,23 +90,11 @@ assert(idList_after.count(SketchLineId) == 6)
 assert(idList_after.count(SketchConstraintCoincidenceId) == 8)
 
 
-#check arc position intersections of created arc to an additional line
-#SketchLine_intersecting_1 = Sketch.addLine(0, 0, 50, 50)
-#SketchLine_intersecting_2 = Sketch.addLine(50, 50, 100, 100)
-
-#Intersection_Points_1 = ModelGeomAlgo_Point2D.getSetOfPntIntersectedShape(SketchArc, FeatureList([SketchLine_intersecting_1.feature()]))
-#Intersection_Points_2 = ModelGeomAlgo_Point2D.getSetOfPntIntersectedShape(SketchArc, FeatureList([SketchLine_intersecting_2.feature()]))
-
-#assert(len(Intersection_Points_1) == 1)
-#assert(len(Intersection_Points_2) == 0)
-
 #add point for check
 SketchPoint = Sketch.addPoint(GeomPoint.x(), GeomPoint.y())
 Intersection_Points_3 = ModelGeomAlgo_Point2D.getSetOfPntIntersectedShape(SketchArc, FeatureList([SketchPoint.feature()]))
 assert(len(Intersection_Points_3) == 0)
 
-
-
 #perform trim: horizontal
 #second intersection point - horizontal
 SketchLine_intersecting_h = Sketch.addLine(10, 48, 72, 48)
@@ -154,4 +142,4 @@ assert(len(Intersection_Points_5) == 0)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 5256326fb12a3926cc7c869e18c0cd58c5b602fe..b823a6ceb3464aaf4f5dc2a046ff2831178473ab 100644 (file)
@@ -68,4 +68,4 @@ assert(idList_after.count(SketchConstraintCoincidenceId) == 2)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())
index 9730f8e0728a5fa2445b455e0b442471bef4242c..d9f3aa3d6bb04a32d2d48e052a071896a9d539cf 100644 (file)
@@ -85,4 +85,4 @@ assert(len(Intersection_Points_5) == 1)
 
 model.end()
 
-#assert(model.checkPythonDump())
+assert(model.checkPythonDump())