From: dbv Date: Wed, 1 Jul 2015 08:42:06 +0000 (+0300) Subject: Test update X-Git-Tag: V_1.3.0~141 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2cf753f058cad69b37019da92087b47ef675850;p=modules%2Fshaper.git Test update --- diff --git a/src/FeaturesPlugin/Test/TestMultiBoolean.py b/src/FeaturesPlugin/Test/TestMultiBoolean.py index e4577bd4d..ce9fa6734 100644 --- a/src/FeaturesPlugin/Test/TestMultiBoolean.py +++ b/src/FeaturesPlugin/Test/TestMultiBoolean.py @@ -174,6 +174,7 @@ aSession.finishOperation() #========================================================================= aCurrentResult = modelAPI_ResultBody(aBox.firstResult()) aSession.startOperation() +aFactory = ModelAPI_Session.get().validators() for i in xrange(0, N * N): anExtrusionResult = modelAPI_ResultBody(anExtrusions[i].firstResult()) aBooleanFt = aPart.addFeature("Boolean") @@ -182,8 +183,10 @@ for i in xrange(0, N * N): kBooleanTypeCut = 0 aBooleanFt.integer("bool_type").setValue(kBooleanTypeCut) aBooleanFt.execute() - aCurrentResult = modelAPI_ResultBody(aBooleanFt.firstResult()) + assert (aFactory.validate(aBooleanFt)) assert (len(aBooleanFt.results()) > 0) + aCurrentResult = modelAPI_ResultBody(aBooleanFt.firstResult()) + assert (aCurrentResult is not None) aSession.finishOperation() #=========================================================================