From 078a7eb2904bc4ed601f7223580ea2c82d1ca9e5 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 19 Oct 2023 16:42:20 +0500 Subject: [PATCH] Fix tests after 808ff54 --- src/blenderbim/test/bim/feature/aggregate.feature | 2 ++ src/blenderbim/test/bim/feature/brick.feature | 5 +++++ src/blenderbim/test/bim/feature/system.feature | 3 +++ 3 files changed, 10 insertions(+) diff --git a/src/blenderbim/test/bim/feature/aggregate.feature b/src/blenderbim/test/bim/feature/aggregate.feature index 9d6c35d294..407b02cc17 100644 --- a/src/blenderbim/test/bim/feature/aggregate.feature +++ b/src/blenderbim/test/bim/feature/aggregate.feature @@ -42,6 +42,7 @@ Scenario: Unassign object - multiple objects are contained again to their indire Given an empty IFC project And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcMember" And I press "bim.assign_class" And I add a cube @@ -105,6 +106,7 @@ Scenario: Add aggregate - add multiple elements to a custom aggregate class Given an empty IFC project And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcMember" And I press "bim.assign_class" And I add a cube diff --git a/src/blenderbim/test/bim/feature/brick.feature b/src/blenderbim/test/bim/feature/brick.feature index 06fcfbdefd..19c3084d04 100644 --- a/src/blenderbim/test/bim/feature/brick.feature +++ b/src/blenderbim/test/bim/feature/brick.feature @@ -66,6 +66,7 @@ Scenario: Add Brick - from geometry without a Brick IFC library And I press "bim.new_brick_file" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" And I press "bim.assign_class" And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" @@ -79,6 +80,7 @@ Scenario: Add Brick - from geometry with a Brick IFC library And the Brickschema is stubbed And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" And I press "bim.assign_class" And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" @@ -139,6 +141,7 @@ Scenario: Remove Brick - with a Brick IFC library reference And the Brickschema is stubbed And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" And I press "bim.assign_class" And I press "bim.load_brick_project(filepath='{cwd}/test/files/spaces.ttl')" @@ -203,6 +206,7 @@ Scenario: Convert IFC to brick And I set "scene.BIMBrickProperties.namespace" to "https://example.org/digitaltwin#" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcUnitaryEquipment" And I set "scene.BIMRootProperties.ifc_predefined_type" to "AIRHANDLER" And I press "bim.assign_class" @@ -220,6 +224,7 @@ Scenario: Assign brick reference And I set "scene.BIMBrickProperties.active_brick_index" to "0" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcChiller" And I press "bim.assign_class" And the object "IfcChiller/Cube" is selected diff --git a/src/blenderbim/test/bim/feature/system.feature b/src/blenderbim/test/bim/feature/system.feature index a9ae5756e9..486f01fbaf 100644 --- a/src/blenderbim/test/bim/feature/system.feature +++ b/src/blenderbim/test/bim/feature/system.feature @@ -61,6 +61,7 @@ Scenario: Assign system And I press "bim.enable_editing_system(system={system})" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcPump" And I press "bim.assign_class" And the object "IfcPump/Cube" is selected @@ -76,6 +77,7 @@ Scenario: Unassign system And I press "bim.enable_editing_system(system={system})" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcPump" And I press "bim.assign_class" And the object "IfcPump/Cube" is selected @@ -92,6 +94,7 @@ Scenario: Select system products And I press "bim.enable_editing_system(system={system})" And I add a cube And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_product" to "IfcElement" And I set "scene.BIMRootProperties.ifc_class" to "IfcPump" And I press "bim.assign_class" And the object "IfcPump/Cube" is selected