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

Method test_save_to_new_path

src/ifcmcp/tests/test_session.py:36–42  ·  view source on GitHub ↗
(self, session, model_file, tmp_path)

Source from the content-addressed store, hash-verified

34 assert model_file in result
35
36 def test_save_to_new_path(self, session, model_file, tmp_path):
37 session.ifc_load(model_file)
38 new_path = str(tmp_path / "output.ifc")
39 result = session.ifc_save(new_path)
40 assert new_path in result
41 reloaded = ifcopenshell.open(new_path)
42 assert reloaded.schema == "IFC4"
43
44 def test_save_no_path_no_original(self, loaded_session):
45 with pytest.raises(IfcSessionError, match="No path specified"):

Callers

nothing calls this directly

Calls 3

ifc_loadMethod · 0.80
ifc_saveMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected