From: nds Date: Fri, 8 Jul 2016 12:59:33 +0000 (+0300) Subject: Correction for unit-test for int array X-Git-Tag: V_2.5.0~213 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d02795b160851d917ba17b199c31bace3e7a6122;p=modules%2Fshaper.git Correction for unit-test for int array --- diff --git a/src/ModelAPI/Test/TestIntArray.py b/src/ModelAPI/Test/TestIntArray.py index a52bbdd4a..6b540f850 100755 --- a/src/ModelAPI/Test/TestIntArray.py +++ b/src/ModelAPI/Test/TestIntArray.py @@ -21,9 +21,10 @@ aSession = ModelAPI_Session.get() aPartSet = aSession.moduleDocument() aSession.startOperation() aSketchFeature = featureToCompositeFeature(aPartSet.addFeature("Sketch")) -anArray = aSketchFeature.data().addAttribute("IntArray_1", "IntArray") -anArray.setSize(5) -assert(anArra.size() == 5) +aFeatureData = aSketchFeature.data() +anArray = aFeatureData.addAttribute("IntArray_1", "IntArray") +aFeatureData.intArray("IntArray_1").setSize(5) +assert(aFeatureData.intArray("IntArray_1").size() == 5) #========================================================================= # End of test