A last bit of cleaning up temp files after tests

This commit is contained in:
Andrej730
2023-03-02 10:42:19 +05:00
parent cf2ad43ed7
commit 1fca38625f
2 changed files with 8 additions and 0 deletions
@@ -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
+7
View File
@@ -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()