MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / test_run

Method test_run

src/bonsai/test/tool/test_geometry.py:300–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

298
299class TestLink(NewFile):
300 def test_run(self):
301 ifc = ifcopenshell.file()
302 element = ifc.createIfcShapeRepresentation()
303 obj = bpy.data.meshes.new("Mesh")
304 subject.link(element, obj)
305 assert tool.Geometry.get_mesh_props(obj).ifc_definition_id == element.id()
306
307
308class TestRecordObjectMaterials(NewFile):

Callers

nothing calls this directly

Calls 5

newMethod · 0.80
get_mesh_propsMethod · 0.80
fileMethod · 0.45
linkMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected