diff --git a/src/ifcopenshell-python/test/bootstrap.py b/src/ifcopenshell-python/test/bootstrap.py index 93a713c3e6..ed0533d23e 100644 --- a/src/ifcopenshell-python/test/bootstrap.py +++ b/src/ifcopenshell-python/test/bootstrap.py @@ -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):