Fix failing collector tests to align with new behaviour

This commit is contained in:
Dion Moult
2024-06-28 21:15:53 +10:00
parent e59cd80868
commit 008fa70345
5 changed files with 91 additions and 143 deletions
+12
View File
@@ -57,6 +57,18 @@ class NewIfc:
bpy.ops.bim.create_project()
class NewIfc4X3:
@pytest.fixture(autouse=True)
def setup(self):
IfcStore.purge()
bpy.ops.wm.read_homefile(app_template="")
bpy.data.batch_remove(bpy.data.objects)
bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)
blenderbim.bim.handler.load_post(None)
bpy.context.scene.BIMProjectProperties.export_schema = "IFC4X3_ADD2"
bpy.ops.bim.create_project()
def scenario(function):
def subfunction(self):
run(function(self))