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

Method test_bad_json

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

Source from the content-addressed store, hash-verified

68 assert "Unknown parameter" in result["error"]
69
70 def test_bad_json(self, loaded_session):
71 with pytest.raises(json.JSONDecodeError):
72 loaded_session.ifc_edit("root.create_entity", "not json")
73
74 def test_edit_does_not_save(self, loaded_session, tmp_path):
75 """Verify that ifc_edit mutates the in-memory model but does not write to disk."""

Callers

nothing calls this directly

Calls 1

ifc_editMethod · 0.80

Tested by

no test coverage detected