def test_to_tool_list(editor: ArtifactEditorToolSpec):
    """Test converting to tool list includes all expected tools."""
    tools = editor.to_tool_list()

    # Should have 3 tools: apply_patch, get_current_artifact, create_artifact
    assert len(tools) == 3

    tool_names = [tool.metadata.name for tool in tools]
    assert "apply_patch" in tool_names
    assert "get_current_artifact" in tool_names
    assert "create_artifact" in tool_names
Test converting to tool list includes all expected tools.
llama-index-integrations/tools/llama-index-tools-artifact-editor/tests/test_artifact_editor.py