X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestBooleanCompSolids.py;h=8d997e60ecb747a8516bf6445d8e63da72d433b4;hb=ebc5236aba00c21e854d6705d1cbbc6599e1bf36;hp=47e6beafe5986e3089d2dce164a7bf612fc4eab2;hpb=888a5fe999b8d7e9dec37fdf64d43a61e872b31b;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestBooleanCompSolids.py b/src/FeaturesPlugin/Test/TestBooleanCompSolids.py index 47e6beafe..8d997e60e 100644 --- a/src/FeaturesPlugin/Test/TestBooleanCompSolids.py +++ b/src/FeaturesPlugin/Test/TestBooleanCompSolids.py @@ -100,6 +100,23 @@ aSession.startOperation() aBooleanFt = aPart.addFeature("Boolean") aBooleanFt.selectionList("main_objects").append(modelAPI_ResultCompSolid(extrudedObjects[0]).subResult(1), None) aBooleanFt.selectionList("tool_objects").append(extrudedObjects[1], None) +aBooleanType = 0 +aBooleanFt.integer("bool_type").setValue(aBooleanType) +aBooleanFt.execute() +aSession.finishOperation() + +assert (len(aBooleanFt.results()) > 0) +aBooleanResult = modelAPI_ResultBody(aBooleanFt.firstResult()) +assert (aBooleanResult is not None) +aSession.undo() + +#========================================================================= +# Fuse +#========================================================================= +aSession.startOperation() +aBooleanFt = aPart.addFeature("Boolean") +aBooleanFt.selectionList("main_objects").append(modelAPI_ResultCompSolid(extrudedObjects[0]).subResult(1), None) +aBooleanFt.selectionList("tool_objects").append(extrudedObjects[1], None) aBooleanType = 1 aBooleanFt.integer("bool_type").setValue(aBooleanType) aBooleanFt.execute() @@ -111,3 +128,6 @@ assert (aBooleanResult is not None) #========================================================================= # End of test #========================================================================= + +import model +assert(model.checkPythonDump())