From 89da2b3b7dacccaf6dd45c40e198e43a9a2d49bf Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 20 Feb 2024 12:31:13 +0500 Subject: [PATCH] IFC4.3 test bootstrap --- src/ifcopenshell-python/test/bootstrap.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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):