From 118b7bdf7dc5b9388ec6b83bf8350e2cc3a45978 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 29 Jun 2015 11:32:55 +0300 Subject: [PATCH] Update the behavior of unit test due to the changes in documents logics --- src/ModelAPI/Test/TestDocument.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModelAPI/Test/TestDocument.py b/src/ModelAPI/Test/TestDocument.py index a76ac80be..8080f3654 100644 --- a/src/ModelAPI/Test/TestDocument.py +++ b/src/ModelAPI/Test/TestDocument.py @@ -77,8 +77,9 @@ assert(aSession.moduleDocument().size("Parts") == 2) aSession.startOperation() aPart.addFeature("Remove") aSession.finishOperation() +# First part is deleted, but active is Part_2, so, it is still active assert(aSession.moduleDocument().size("Parts") == 1) -assert(aSession.activeDocument().id() == aSession.moduleDocument().id()) +assert(aSession.activeDocument().id() == aCopyOfPart.id()) # Remove another one document aSession.startOperation() aDoc2 = aSession.document("Part_2") -- 2.39.2