Refactor misc functions into new misc module for better organisation.

This commit is contained in:
Dion Moult
2021-10-18 11:21:49 +11:00
parent 8ed395a29f
commit a9a48bdd1d
13 changed files with 257 additions and 113 deletions
@@ -0,0 +1,25 @@
@misc
Feature: Misc
Scenario: Set override colour
Given an empty IFC project
And I add a cube
And the object "Cube" is selected
When I press "bim.set_override_colour"
Then nothing happens
Scenario: Set viewport shadow from sun
Given an empty IFC project
And I add a sun
And the object "Sun" is selected
When I press "bim.set_viewport_shadow_from_sun"
Then nothing happens
Scenario: Snap spaces together
Given an empty IFC project
And I add a cube
And I add a cube
And the object "Cube" is selected
And additionally the object "Cube.001" is selected
When I press "bim.snap_spaces_together"
Then nothing happens
+6
View File
@@ -78,6 +78,12 @@ def i_add_an_empty():
bpy.ops.object.empty_add()
@given("I add a sun")
@when("I add an sun")
def i_add_an_empty():
bpy.ops.object.light_add(type="SUN")
@given("I add a material")
def i_add_a_material():
bpy.context.active_object.active_material = bpy.data.materials.new("Material")