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

Method test_add_pset

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

Source from the content-addressed store, hash-verified

33 assert result["result"]["type"] == "IfcRelContainedInSpatialStructure"
34
35 def test_add_pset(self, model):
36 wall = model.by_type("IfcWall")[0]
37 result = run_api(model, "pset", "add_pset", {"product": str(wall.id()), "name": "Pset_WallCommon"})
38 assert result["ok"] is True
39 assert result["result"]["type"] == "IfcPropertySet"
40
41 def test_unknown_function(self, model):
42 result = run_api(model, "root", "nonexistent", {})

Callers

nothing calls this directly

Calls 3

run_apiFunction · 0.90
by_typeMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected