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

Method test_by_id

src/ifcopenshell-python/test/test_sql.py:49–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 assert ifc_sqlite.schema == "IFC4"
48
49 def test_by_id(self):
50 ifc_sqlite = get_ifc_sqlite()
51 assert (element := ifc_sqlite.by_id(1))
52 assert str(element) == "#1=IFCPROJECT('3kv235yMjDO9tHiTzD8QuS',$,'My Project',$,$,$,$,(#14,#26),#9);"
53
54 def test_by_type(self):
55 ifc_sqlite = get_ifc_sqlite()

Callers

nothing calls this directly

Calls 2

get_ifc_sqliteFunction · 0.85
by_idMethod · 0.45

Tested by

no test coverage detected