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

Method test_rectangle

src/ifcmcp/tests/test_shape.py:74–77  ·  view source on GitHub ↗
(self, loaded_session)

Source from the content-addressed store, hash-verified

72
73class TestShapeExecute:
74 def test_rectangle(self, loaded_session):
75 result = loaded_session.ifc_shape("rectangle", json.dumps({"size": [4.0, 0.2]}))
76 assert result["ok"] is True
77 assert result["result"]["type"] == "IfcIndexedPolyCurve"
78
79 def test_circle(self, loaded_session):
80 result = loaded_session.ifc_shape("circle", json.dumps({"center": [0.0, 0.0], "radius": 0.5}))

Callers

nothing calls this directly

Calls 1

ifc_shapeMethod · 0.80

Tested by

no test coverage detected