From: jfa Date: Thu, 2 Jul 2020 12:04:47 +0000 (+0300) Subject: Task #3231: Sketcher Offset of a curve. Unit test. X-Git-Tag: V9_6_0a1~60^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf59f7dc949595f88762c466fa85c853be62696a;p=modules%2Fshaper.git Task #3231: Sketcher Offset of a curve. Unit test. --- diff --git a/src/SketchPlugin/Test/TestOffset.py b/src/SketchPlugin/Test/TestOffset.py index 53e2118eb..b673927cf 100644 --- a/src/SketchPlugin/Test/TestOffset.py +++ b/src/SketchPlugin/Test/TestOffset.py @@ -65,7 +65,9 @@ def checkOffset(theListIn, theListOut, theOutToIn, theDist, isReversed, nbIn, nb aFeatureOut = ModelAPI_Feature.feature(theListOut.object(ind)) assert(aFeatureOut is not None) anInInd = theOutToIn.value(ind) - if (not anInInd == -1): + if (anInInd == -1): + assert(aFeatureOut.getKind() == "SketchArc") + else: aFeatureIn = ModelAPI_Feature.feature(theListIn.object(anInInd)) assert(aFeatureIn is not None)