From: dbv Date: Thu, 17 Sep 2015 16:12:37 +0000 (+0300) Subject: Partition test fix X-Git-Tag: V_1.4.0~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=062294273959267eed5ee3751cec4644388687fa;p=modules%2Fshaper.git Partition test fix --- diff --git a/src/FeaturesPlugin/Test/TestPartition.py b/src/FeaturesPlugin/Test/TestPartition.py index 6b8c5da5c..2bb4d00f1 100644 --- a/src/FeaturesPlugin/Test/TestPartition.py +++ b/src/FeaturesPlugin/Test/TestPartition.py @@ -96,9 +96,15 @@ aPartitionFt = aPart.addFeature("Partition") assert (aPartitionFt.getKind() == "Partition") aPartitionFt.selectionList("main_objects").append(anExtrusionResult, anExtrusionResult.shape()) aPartitionFt.selectionList("tool_objects").append(aPlaneResult, None) +aPartitionFt.boolean("partition_combine").setValue(True) aPartitionFt.execute() aSession.finishOperation() +#========================================================================= +# Test results +#========================================================================= +aFactory = ModelAPI_Session.get().validators() +assert (aFactory.validate(aPartitionFt)) assert (len(aPartitionFt.results()) > 0) aPartitionResult = modelAPI_ResultBody(aPartitionFt.firstResult()) assert (aPartitionResult is not None)