Moved blenderbim tests temporary files to separate directory

Moved temporary test files to separate directory and added it to gitignore

Still have test.exp.cache.dat spawning from `test_feature`...
This commit is contained in:
Andrej730
2023-03-01 18:14:52 +05:00
parent 52f18fea85
commit fb3023bb79
7 changed files with 46 additions and 39 deletions
+2 -2
View File
@@ -722,7 +722,7 @@ def run_test_code():
@when(parsers.parse("I save sample test files"))
@then(parsers.parse("I save sample test files"))
def saving_sample_test_files(and_open_in_blender=None):
filepath = f"{variables['cwd']}/test/files/sample_test_file"
filepath = f"{variables['cwd']}/test/files/temp/sample_test_file"
blend_filepath = f"{filepath}.blend"
bpy.ops.export_ifc.bim(filepath=f"{filepath}.ifc", should_save_as=True)
bpy.ops.wm.save_as_mainfile(filepath=f"{filepath}.blend")
@@ -734,7 +734,7 @@ def saving_sample_test_files(and_open_in_blender=None):
@then(parsers.parse("I save sample test files and open in blender"))
def saving_sample_test_files_and_open_in_blender():
saving_sample_test_files()
filepath = f"{variables['cwd']}/test/files/sample_test_file.blend"
filepath = f"{variables['cwd']}/test/files/temp/sample_test_file.blend"
import subprocess
subprocess.Popen([bpy.app.binary_path, f"{filepath}"])