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

Method test_unknown_parameter

src/ifcmcp/tests/test_edit.py:65–68  ·  view source on GitHub ↗
(self, loaded_session)

Source from the content-addressed store, hash-verified

63 assert "Cannot find" in result["error"]
64
65 def test_unknown_parameter(self, loaded_session):
66 result = loaded_session.ifc_edit("root.create_entity", json.dumps({"bogus": "value"}))
67 assert result["ok"] is False
68 assert "Unknown parameter" in result["error"]
69
70 def test_bad_json(self, loaded_session):
71 with pytest.raises(json.JSONDecodeError):

Callers

nothing calls this directly

Calls 1

ifc_editMethod · 0.80

Tested by

no test coverage detected