IFC4.3 test bootstrap

This commit is contained in:
Andrej730
2024-02-20 12:31:13 +05:00
parent 412700c8fd
commit 049c796629
+10
View File
@@ -22,6 +22,16 @@ import ifcopenshell.api
import ifcopenshell.api.owner.settings
class IFC4X3:
@pytest.fixture(autouse=True)
def setup(self):
self.file: ifcopenshell.file = ifcopenshell.api.run("project.create_file", version="IFC4X3")
ifcopenshell.api.owner.settings.get_user = lambda ifc: (ifc.by_type("IfcPersonAndOrganization") or [None])[0]
ifcopenshell.api.owner.settings.get_application = lambda ifc: (ifc.by_type("IfcApplication") or [None])[0]
ifcopenshell.api.pre_listeners = {}
ifcopenshell.api.post_listeners = {}
class IFC4:
@pytest.fixture(autouse=True)
def setup(self):