From 062294273959267eed5ee3751cec4644388687fa Mon Sep 17 00:00:00 2001 From: dbv Date: Thu, 17 Sep 2015 19:12:37 +0300 Subject: [PATCH] Partition test fix --- src/FeaturesPlugin/Test/TestPartition.py | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2