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

Method test_create_entity

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

Source from the content-addressed store, hash-verified

48
49class TestEdit:
50 def test_create_entity(self, loaded_session):
51 result = loaded_session.ifc_edit("root.create_entity", json.dumps({"ifc_class": "IfcWall", "name": "NewWall"}))
52 assert result["ok"] is True
53 assert result["result"]["type"] == "IfcWall"
54 assert result["result"]["name"] == "NewWall"
55
56 def test_create_entity_default_params(self, loaded_session):
57 result = loaded_session.ifc_edit("root.create_entity", "{}")

Callers

nothing calls this directly

Calls 1

ifc_editMethod · 0.80

Tested by

no test coverage detected