(self, session, model_file, tmp_path)
| 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"): |