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

Method test_create_entity

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

Source from the content-addressed store, hash-verified

9
10class TestRunApi:
11 def test_create_entity(self, model):
12 result = run_api(model, "root", "create_entity", {"ifc_class": "IfcWall", "name": "NewWall"})
13 assert result["ok"] is True
14 assert result["result"]["type"] == "IfcWall"
15 assert result["result"]["name"] == "NewWall"
16 assert isinstance(result["result"]["id"], int)
17
18 def test_create_entity_default_class(self, model):
19 result = run_api(model, "root", "create_entity", {})

Callers

nothing calls this directly

Calls 1

run_apiFunction · 0.90

Tested by

no test coverage detected