mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
Fix failing bim tests after 5b33c60
This commit is contained in:
@@ -21,14 +21,18 @@ Scenario: Resize to storey
|
|||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
And the object "Cube" is selected
|
And the object "Cube" is selected
|
||||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
And I look at the "Class" panel
|
||||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
And I set the "Products" property to "IfcElement"
|
||||||
And I press "bim.assign_class"
|
And I set the "Class" property to "IfcWall"
|
||||||
|
And I click "Assign IFC Class"
|
||||||
And the object "IfcWall/Cube" is selected
|
And the object "IfcWall/Cube" is selected
|
||||||
And the variable "storey" is "tool.Ifc.get().by_type('IfcBuildingStorey')[0].id()"
|
And I look at the "Spatial Decomposition" panel
|
||||||
And I press "bim.set_default_container(container={storey})"
|
And I select the "My Storey" item in the "BIM_UL_containers_manager" list
|
||||||
And I press "bim.assign_container(container={storey})"
|
And I click "Set Default"
|
||||||
When I press "bim.resize_to_storey(total_storeys=1)"
|
# Assign Container.
|
||||||
|
And I click "FOLDER_REDIRECT"
|
||||||
|
And I look at the "Miscellaneous" panel
|
||||||
|
When I click "Resize To Storey"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Split along edge - boolean mode
|
Scenario: Split along edge - boolean mode
|
||||||
|
|||||||
@@ -21,14 +21,17 @@ Scenario: Assign container
|
|||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
And the object "Cube" is selected
|
And the object "Cube" is selected
|
||||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
And I look at the "Class" panel
|
||||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
And I set the "Products" property to "IfcElement"
|
||||||
And I press "bim.assign_class"
|
And I set the "Class" property to "IfcWall"
|
||||||
|
And I click "Assign IFC Class"
|
||||||
And the object "IfcWall/Cube" is selected
|
And the object "IfcWall/Cube" is selected
|
||||||
And the variable "site" is "tool.Ifc.get().by_type('IfcSite')[0].id()"
|
And I look at the "Spatial Decomposition" panel
|
||||||
And I press "bim.set_default_container(container={site})"
|
And I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||||
And I press "bim.enable_editing_container"
|
And I click "Set Default"
|
||||||
When I press "bim.assign_container()"
|
And I look at the "Spatial Container" panel
|
||||||
|
And I click "GREASEPENCIL"
|
||||||
|
When I click "CHECKMARK"
|
||||||
Then the object "IfcWall/Cube" is in the collection "IfcSite/My Site"
|
Then the object "IfcWall/Cube" is in the collection "IfcSite/My Site"
|
||||||
|
|
||||||
Scenario: Copy to container
|
Scenario: Copy to container
|
||||||
@@ -75,30 +78,38 @@ Scenario: Select container
|
|||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
And the object "Cube" is selected
|
And the object "Cube" is selected
|
||||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
And I look at the "Class" panel
|
||||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
And I set the "Products" property to "IfcElement"
|
||||||
And I press "bim.assign_class"
|
And I set the "Class" property to "IfcWall"
|
||||||
|
And I click "Assign IFC Class"
|
||||||
And the object "IfcWall/Cube" is selected
|
And the object "IfcWall/Cube" is selected
|
||||||
And I press "bim.enable_editing_container"
|
And I look at the "Spatial Decomposition" panel
|
||||||
And the variable "site" is "tool.Ifc.get().by_type('IfcSite')[0].id()"
|
And I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||||
And I press "bim.set_default_container(container={site})"
|
And I click "Set Default"
|
||||||
And I press "bim.assign_container()"
|
# Assign container.
|
||||||
When I press "bim.select_container"
|
And I look at the "Spatial Container" panel
|
||||||
|
And I click "GREASEPENCIL"
|
||||||
|
And I click "CHECKMARK"
|
||||||
|
When I click "OBJECT_DATA"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Select similar container
|
Scenario: Select similar container
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
And the object "Cube" is selected
|
And the object "Cube" is selected
|
||||||
And I set "scene.BIMRootProperties.ifc_product" to "IfcElement"
|
And I look at the "Class" panel
|
||||||
And I set "scene.BIMRootProperties.ifc_class" to "IfcWall"
|
And I set the "Products" property to "IfcElement"
|
||||||
And I press "bim.assign_class"
|
And I set the "Class" property to "IfcWall"
|
||||||
|
And I click "Assign IFC Class"
|
||||||
And the object "IfcWall/Cube" is selected
|
And the object "IfcWall/Cube" is selected
|
||||||
And I press "bim.enable_editing_container"
|
And I look at the "Spatial Decomposition" panel
|
||||||
And the variable "site" is "tool.Ifc.get().by_type('IfcSite')[0].id()"
|
And I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||||
And I press "bim.set_default_container(container={site})"
|
And I click "Set Default"
|
||||||
And I press "bim.assign_container()"
|
# Assign container.
|
||||||
When I press "bim.select_similar_container"
|
And I look at the "Spatial Container" panel
|
||||||
|
And I click "GREASEPENCIL"
|
||||||
|
And I click "CHECKMARK"
|
||||||
|
When I click "RESTRICT_SELECT_OFF"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Execute generate space from cursor position
|
Scenario: Execute generate space from cursor position
|
||||||
|
|||||||
@@ -562,6 +562,9 @@ def i_press_operator(operator):
|
|||||||
@when(parsers.parse('I click "{button}"'))
|
@when(parsers.parse('I click "{button}"'))
|
||||||
@then(parsers.parse('I click "{button}"'))
|
@then(parsers.parse('I click "{button}"'))
|
||||||
def i_click_button(button):
|
def i_click_button(button):
|
||||||
|
"""
|
||||||
|
:param button: The text or icon of the button to click.
|
||||||
|
"""
|
||||||
assert panel_spy
|
assert panel_spy
|
||||||
panel_spy.refresh_spy()
|
panel_spy.refresh_spy()
|
||||||
for spied_operator in panel_spy.spied_operators:
|
for spied_operator in panel_spy.spied_operators:
|
||||||
|
|||||||
Reference in New Issue
Block a user