From c5aab16696b51293602ab37822f60487968af5b8 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Mon, 19 Jun 2023 14:34:14 +0200 Subject: [PATCH] Remove dependency on bootstrap --- src/ifcopenshell-python/test/test_create_shape.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ifcopenshell-python/test/test_create_shape.py b/src/ifcopenshell-python/test/test_create_shape.py index 1e087f74b0..e319dfa3f2 100644 --- a/src/ifcopenshell-python/test/test_create_shape.py +++ b/src/ifcopenshell-python/test/test_create_shape.py @@ -1,12 +1,14 @@ import ifcopenshell import ifcopenshell.api import ifcopenshell.geom +import ifcopenshell.api.owner.settings -import bootstrap - - -class TestAssignObject(bootstrap.IFC4): +class TestAssignObject: def test_no_welding_on_distinct_items(self): + self.file = ifcopenshell.api.run("project.create_file") + 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.run( "root.create_entity", self.file, ifc_class="IfcProject", name="Test" )