From: azv Date: Thu, 21 Dec 2017 10:21:48 +0000 (+0300) Subject: Fix unit tests for the Filling feature X-Git-Tag: V_2.10.1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24d2e3827b4cbc628620b97981d9c54afb802e5c;p=modules%2Fshaper.git Fix unit tests for the Filling feature --- diff --git a/src/BuildPlugin/Test/TestFilling_ByEdges.py b/src/BuildPlugin/Test/TestFilling_ByEdges.py index ac2468ab3..08b3aea56 100644 --- a/src/BuildPlugin/Test/TestFilling_ByEdges.py +++ b/src/BuildPlugin/Test/TestFilling_ByEdges.py @@ -87,10 +87,9 @@ aBaseObjectsList.append(aSketch1Result, anArc.lastResult().shape()) aSession.finishOperation() # ============================================================================= -# Test 1. Filling on one edge is failed (error is reported) +# Test 1. Filling on one edge is failed (no result is built) # ============================================================================= assert(len(aFillingFeature.results()) == 0) -assert(aFillingFeature.error() != "") # ============================================================================= # Test 2. Add another edge, filling should be completed diff --git a/src/BuildPlugin/Test/TestFilling_ByWires.py b/src/BuildPlugin/Test/TestFilling_ByWires.py index 238e7764a..1529a3c09 100644 --- a/src/BuildPlugin/Test/TestFilling_ByWires.py +++ b/src/BuildPlugin/Test/TestFilling_ByWires.py @@ -109,10 +109,9 @@ aBaseObjectsList.append(aWire1.lastResult(), None) aSession.finishOperation() # ============================================================================= -# Test 1. Filling on one wire is failed (error is reported) +# Test 1. Filling on one wire is failed (no result is built) # ============================================================================= assert(len(aFillingFeature.results()) == 0) -assert(aFillingFeature.error() != "") # ============================================================================= # Test 2. Add another wire, filling should be completed diff --git a/src/BuildPlugin/Test/TestFilling_Mixed.py b/src/BuildPlugin/Test/TestFilling_Mixed.py index c6d436535..c020982ed 100644 --- a/src/BuildPlugin/Test/TestFilling_Mixed.py +++ b/src/BuildPlugin/Test/TestFilling_Mixed.py @@ -94,10 +94,9 @@ aBaseObjectsList.append(aSketch1Result, anArc.lastResult().shape()) aSession.finishOperation() # ============================================================================= -# Test 1. Filling on one edge is failed (error is reported) +# Test 1. Filling on one edge is failed (no result is built) # ============================================================================= assert(len(aFillingFeature.results()) == 0) -assert(aFillingFeature.error() != "") # ============================================================================= # Test 2. Add a wire, filling should be completed