(self, model)
| 21 | assert result["result"]["type"] == "IfcBuildingElementProxy" |
| 22 | |
| 23 | def test_assign_container(self, model): |
| 24 | wall = ifcopenshell.api.root.create_entity(model, ifc_class="IfcWall", name="TestWall2") |
| 25 | storey = model.by_type("IfcBuildingStorey")[0] |
| 26 | result = run_api( |
| 27 | model, |
| 28 | "spatial", |
| 29 | "assign_container", |
| 30 | {"products": str(wall.id()), "relating_structure": str(storey.id())}, |
| 31 | ) |
| 32 | assert result["ok"] is True |
| 33 | assert result["result"]["type"] == "IfcRelContainedInSpatialStructure" |
| 34 | |
| 35 | def test_add_pset(self, model): |
| 36 | wall = model.by_type("IfcWall")[0] |
nothing calls this directly
no test coverage detected