(self, model)
| 9 | |
| 10 | class 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", {}) |