mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
Fix copy to container test (ddbe627)
This commit is contained in:
@@ -82,10 +82,10 @@ Scenario: Copy to container
|
||||
And I set the "Products" property to "IfcElement"
|
||||
And I set the "Class" property to "IfcWall"
|
||||
And I click "Assign IFC Class"
|
||||
And the object "IfcSite/My Site" is selected
|
||||
And additionally the object "IfcWall/Cube" is selected
|
||||
And I press "bim.enable_editing_container"
|
||||
When I press "bim.copy_to_container"
|
||||
And I look at the "Spatial Decomposition" panel
|
||||
When I select the "My Site" item in the "BIM_UL_containers_manager" list
|
||||
And the object "IfcWall/Cube" is selected
|
||||
When I click "MOD_DISPLACE"
|
||||
Then the object "IfcWall/Cube.001" is in the collection "IfcSite/My Site"
|
||||
|
||||
Scenario: Reference structure
|
||||
|
||||
@@ -792,6 +792,8 @@ def i_press_operator_and_expect_error(operator, error_msg):
|
||||
assert False, f"Operator bpy.ops.{operator} ran without exception '{error_msg}'"
|
||||
|
||||
|
||||
# TODO: We should rename 'I press' to 'I run' or 'I execute'
|
||||
# to avoid confusion with 'I click'.
|
||||
@given(parsers.parse('I press "{operator}"'))
|
||||
@when(parsers.parse('I press "{operator}"'))
|
||||
def i_press_operator(operator: str) -> types.NoneType:
|
||||
|
||||
Reference in New Issue
Block a user