mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
A last bit of cleaning up temp files after tests
This commit is contained in:
@@ -10,6 +10,7 @@ Scenario: Parse express
|
||||
Given an empty Blender session
|
||||
And I press "bim.select_express_file(filepath='{cwd}/test/files/test.exp')"
|
||||
When I press "bim.parse_express"
|
||||
And I evaluate expression "os.remove('{cwd}/test/files/test.exp.cache.dat')"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Use the inspector - inspect from STEP ID
|
||||
|
||||
@@ -173,6 +173,13 @@ def i_press_operator(operator):
|
||||
exec(f"bpy.ops.{operator}()")
|
||||
|
||||
|
||||
@given(parsers.parse('I evaluate expression "{expression}"'))
|
||||
@when(parsers.parse('I evaluate expression "{expression}"'))
|
||||
def i_evaluate_expression(expression):
|
||||
expression = replace_variables(expression)
|
||||
exec(expression)
|
||||
|
||||
|
||||
@when("I duplicate the selected objects")
|
||||
def i_duplicate_the_selected_objects():
|
||||
bpy.ops.object.duplicate_move()
|
||||
|
||||
Reference in New Issue
Block a user