From e2cf753f058cad69b37019da92087b47ef675850 Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 1 Jul 2015 11:42:06 +0300 Subject: [PATCH] Test update --- src/FeaturesPlugin/Test/TestMultiBoolean.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() #========================================================================= -- 2.39.2