From 900c35e9feb52620711ad68603840ca9d69da768 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 21 Jun 2023 09:46:44 +0500 Subject: [PATCH] Fixing collections tests related to 99d9c0f5b FAILED test/bim/test_feature.py::test_remove_drawing - AssertionError: The collection "IfcGroup/PLAN_VIEW" does not exist --- src/blenderbim/test/bim/feature/drawing.feature | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/test/bim/feature/drawing.feature b/src/blenderbim/test/bim/feature/drawing.feature index 2b287bf9b0..e9d9ec5a81 100644 --- a/src/blenderbim/test/bim/feature/drawing.feature +++ b/src/blenderbim/test/bim/feature/drawing.feature @@ -57,9 +57,9 @@ Scenario: Remove drawing And the variable "wall1" is "IfcStore.get_file().by_type('IfcWall')[-1].id()" And I press "bim.add_drawing" And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" - And the collection "IfcGroup/PLAN_VIEW" exists + And the collection "IfcAnnotation/PLAN_VIEW" exists When I press "bim.remove_drawing(drawing={drawing})" - Then the collection "IfcGroup/PLAN_VIEW" does not exist + Then the collection "IfcAnnotation/PLAN_VIEW" does not exist Scenario: Remove drawing - via object deletion Given an empty IFC project @@ -70,9 +70,10 @@ Scenario: Remove drawing - via object deletion And the variable "wall1" is "IfcStore.get_file().by_type('IfcWall')[-1].id()" And I press "bim.add_drawing" And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" + And the collection "IfcAnnotation/PLAN_VIEW" exists And the object "IfcAnnotation/PLAN_VIEW" is selected When I press "bim.override_object_delete" - Then the collection "IfcGroup/PLAN_VIEW" does not exist + Then the collection "IfcAnnotation/PLAN_VIEW" does not exist Scenario: Remove drawing - deleting active drawing Given an empty IFC project @@ -83,9 +84,10 @@ Scenario: Remove drawing - deleting active drawing And the variable "wall1" is "IfcStore.get_file().by_type('IfcWall')[-1].id()" And I press "bim.add_drawing" And the variable "drawing" is "IfcStore.get_file().by_type('IfcAnnotation')[0].id()" + And the collection "IfcAnnotation/PLAN_VIEW" exists And I set "scene.DocProperties.active_drawing_index" to "0" And I press "bim.activate_drawing(drawing={drawing})" And the object "IfcAnnotation/PLAN_VIEW" is selected When I press "bim.override_object_delete" - Then the collection "IfcGroup/PLAN_VIEW" does not exist + Then the collection "IfcAnnotation/PLAN_VIEW" does not exist