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

Method test_assign_container

src/ifcmcp/tests/test_edit.py:89–96  ·  view source on GitHub ↗
(self, loaded_session)

Source from the content-addressed store, hash-verified

87 assert disk_count == before_count
88
89 def test_assign_container(self, loaded_session):
90 wall = loaded_session.model.by_type("IfcWall")[0]
91 storey = loaded_session.model.by_type("IfcBuildingStorey")[0]
92 result = loaded_session.ifc_edit(
93 "spatial.assign_container",
94 json.dumps({"products": str(wall.id()), "relating_structure": str(storey.id())}),
95 )
96 assert result["ok"] is True

Callers

nothing calls this directly

Calls 3

ifc_editMethod · 0.80
by_typeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected