mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
fix styles tests
This commit is contained in:
@@ -18,7 +18,7 @@ Scenario: Remove style
|
|||||||
When I press "bim.remove_style(style={style})"
|
When I press "bim.remove_style(style={style})"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Add style
|
Scenario: Add style to current blender material
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
And I add a material
|
And I add a material
|
||||||
@@ -33,32 +33,39 @@ Scenario: Unlink style
|
|||||||
When I press "bim.unlink_style"
|
When I press "bim.unlink_style"
|
||||||
Then the material "Material" is not an IFC style
|
Then the material "Material" is not an IFC style
|
||||||
|
|
||||||
Scenario: Enable editing style
|
Scenario: Add a new style
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
||||||
And I add a material
|
And I press "bim.enable_adding_presentation_style"
|
||||||
And I press "bim.add_style"
|
When I press "bim.add_presentation_style"
|
||||||
When I press "bim.enable_editing_style"
|
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Disable editing style
|
Scenario: Disable adding a new style
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
||||||
And I add a material
|
When I press "bim.disable_adding_presentation_style"
|
||||||
And I press "bim.add_style"
|
|
||||||
And I press "bim.enable_editing_style"
|
|
||||||
When I press "bim.disable_editing_style"
|
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Edit style
|
Scenario: Edit style
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
||||||
And I add a material
|
And I press "bim.enable_adding_presentation_style"
|
||||||
And I press "bim.add_style"
|
And I press "bim.add_presentation_style"
|
||||||
And I press "bim.enable_editing_style"
|
And the variable "style" is "{ifc}.by_type('IfcSurfaceStyle')[0].id()"
|
||||||
|
And I press "bim.enable_editing_style(style={style})"
|
||||||
When I press "bim.edit_style"
|
When I press "bim.edit_style"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
|
Scenario: Disable editing style
|
||||||
|
Given an empty IFC project
|
||||||
|
And I press "bim.load_styles(style_type='IfcSurfaceStyle')"
|
||||||
|
And I press "bim.enable_adding_presentation_style"
|
||||||
|
And I press "bim.add_presentation_style"
|
||||||
|
And the variable "style" is "{ifc}.by_type('IfcSurfaceStyle')[0].id()"
|
||||||
|
And I press "bim.enable_editing_style(style={style})"
|
||||||
|
When I press "bim.disable_editing_style"
|
||||||
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Load styles
|
Scenario: Load styles
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I add a cube
|
And I add a cube
|
||||||
|
|||||||
Reference in New Issue
Block a user