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

Method test_list

src/ifcedit/tests/test_run.py:89–93  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

87 assert result["name"] == "Wall001"
88
89 def test_list(self, model):
90 walls = model.by_type("IfcWall")
91 result = serialize_result(walls)
92 assert isinstance(result, list)
93 assert all(isinstance(r, dict) for r in result)
94
95 def test_dict(self):
96 result = serialize_result({"key": "value"})

Callers

nothing calls this directly

Calls 2

serialize_resultFunction · 0.90
by_typeMethod · 0.45

Tested by

no test coverage detected