From 24d2e3827b4cbc628620b97981d9c54afb802e5c Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 21 Dec 2017 13:21:48 +0300 Subject: [PATCH] Fix unit tests for the Filling feature --- src/BuildPlugin/Test/TestFilling_ByEdges.py | 3 +-- src/BuildPlugin/Test/TestFilling_ByWires.py | 3 +-- src/BuildPlugin/Test/TestFilling_Mixed.py | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) 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 -- 2.39.2