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

Method test_empty_list

src/ifcedit/tests/test_foreach.py:55–59  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

53 assert result["count"] == len(items)
54
55 def test_empty_list(self, model):
56 result = run_foreach(model, "root", "remove_product", {"product": "{id}"}, [])
57 assert result["ok"] is True
58 assert result["count"] == 0
59 assert result["errors"] == []
60
61 def test_bad_id_collects_error(self, model):
62 items = [{"id": 999999, "type": "IfcWall", "name": "X"}]

Callers

nothing calls this directly

Calls 1

run_foreachFunction · 0.90

Tested by

no test coverage detected