]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Tests fix.
authordbv <dbv@opencascade.com>
Mon, 27 Nov 2017 17:14:13 +0000 (20:14 +0300)
committerdbv <dbv@opencascade.com>
Mon, 27 Nov 2017 17:14:13 +0000 (20:14 +0300)
src/FeaturesPlugin/Test/TestRemoveSubShapes.py
src/ModelAPI/Test/Test2228.py

index a94dcee60183a4777fe746df64206e78de3513ff..9a10cfab5d2b3a8fdf17d678fb9761f628e893a1 100644 (file)
@@ -87,7 +87,8 @@ anExtrusionResult = modelAPI_ResultCompSolid(modelAPI_ResultBody(anExtrusionFeat
 aSession.startOperation()
 aRemoveSubShapesFeature = aPart.addFeature("Remove_SubShapes")
 aRemoveSubShapesFeature.selection("base_shape").setValue(anExtrusionResult, None)
-aRemoveSubShapesFeature.selectionList("subshapes").removeLast();
+aRemoveSubShapesFeature.string("creation_method").setValue("by_keep_subshapes")
+aRemoveSubShapesFeature.selectionList("subshapes_to_keep").removeLast();
 aSession.finishOperation()
 assert (len(aRemoveSubShapesFeature.results()) > 0)
 anUnionResult = modelAPI_ResultCompSolid(modelAPI_ResultBody(aRemoveSubShapesFeature.firstResult()))
index 3b4f0a032b401a04f2c21d8918b16e9b9da35e24..0926071b411a39f5574b4cc39a7d44986d6ab46a 100644 (file)
@@ -67,5 +67,5 @@ model.end()
 from ModelAPI import *
 aFactory = ModelAPI_Session.get().validators()
 assert(aFactory.validate(Remove_SubShapes_1.feature()))
-assert(Remove_SubShapes_1.subshapes().size() == 1)
-assert(Remove_SubShapes_1.subshapes().value(0).namingName() == "Partition_1_1_1")
+assert(Remove_SubShapes_1.subshapesToKeep().size() == 1)
+assert(Remove_SubShapes_1.subshapesToKeep().value(0).namingName() == "Partition_1_1_1")