From 899ada0019334461e47440e1d02221d0fb59932b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 24 Feb 2025 18:50:51 +0500 Subject: [PATCH] Fix purge unused types test after 3bb4243 --- src/bonsai/test/bim/feature/type.feature | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bonsai/test/bim/feature/type.feature b/src/bonsai/test/bim/feature/type.feature index 6b68fe7566..c32f7a8cfb 100644 --- a/src/bonsai/test/bim/feature/type.feature +++ b/src/bonsai/test/bim/feature/type.feature @@ -202,11 +202,11 @@ Scenario: Select similar type Scenario: Purge unused types Given an empty IFC project And I press "bim.launch_type_manager" - And I set "scene.BIMModelProperties.type_class" to "IfcWallType" - And I set "scene.BIMModelProperties.type_predefined_type" to "SOLIDWALL" - And I set "scene.BIMModelProperties.type_template" to "EMPTY" - When I press "bim.add_type" - Then the object "IfcWallType/TYPEX" is an "IfcWallType" - And the object "IfcWallType/TYPEX" has no data - When I press "bim.purge_unused_types" - Then the object "IfcWallType/TYPEX" does not exist + And I set "scene.BIMRootProperties.ifc_class" to "IfcWallType" + And I set "scene.BIMRootProperties.ifc_predefined_type" to "SOLIDWALL" + And I set "scene.BIMRootProperties.representation_template" to "EMPTY" + When I press "bim.add_element" + Then the object "IfcWallType/Unnamed" is an "IfcWallType" + And the object "IfcWallType/Unnamed" has no data + When I press "bim.purge_unused_objects(object_type='TYPE')" + Then the object "IfcWallType/Unnamed" does not exist