def test_move_without_from_path(editor: ArtifactEditorToolSpec):
    """Test error handling for move operation without from_path."""
    editor.create_artifact(name="John", age=30)

    patch = JsonPatch(
        operations=[
            PatchOperation(op="move", path="/name", value="test")  # Missing from_path
        ]
    )

    with pytest.raises(ValueError, match="'move' operation requires 'from_path'"):
        editor.apply_patch(patch)
Test error handling for move operation without from_path.
llama-index-integrations/tools/llama-index-tools-artifact-editor/tests/test_artifact_editor.py