mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 22:43:41 +00:00
Remove dependency on bootstrap
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.api
|
import ifcopenshell.api
|
||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
|
import ifcopenshell.api.owner.settings
|
||||||
|
|
||||||
import bootstrap
|
class TestAssignObject:
|
||||||
|
|
||||||
|
|
||||||
class TestAssignObject(bootstrap.IFC4):
|
|
||||||
def test_no_welding_on_distinct_items(self):
|
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(
|
ifcopenshell.api.run(
|
||||||
"root.create_entity", self.file, ifc_class="IfcProject", name="Test"
|
"root.create_entity", self.file, ifc_class="IfcProject", name="Test"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user