code: def test_delete_app_on_cluster(
      get_project_mock: mock.MagicMock, delete_app_mock: mock.MagicMock
  ):
      get_project_mock.return_value = V1Membership(
          project_id="default-project"
      )
  
      cluster_manager = _AppManager()
      cluster_manager.delete(app_id="12345")
  
      delete_app_mock.assert_called()
      delete_app_mock.assert_called_once_with(
          project_id="default-project", id="12345"
      )
  
file_path: pytorch-lightning/tests/tests_app/cli/test_cmd_apps.py
imports: from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from lightning.app.cli.cmd_apps import _AppList, _AppManager
  from lightning_cloud.openapi import Externalv1LightningappInstance, V1LightningappInstanceSpec, V1LightningappInstanceState, V1LightningappInstanceStatus, V1LightningworkState, V1ListLightningappInstancesResponse, V1ListLightningworkResponse, V1ListMembershipsResponse, V1Membership
  from rich.text import Text
label_desc: Use image node_id 7 for calling a global function with example usage: test_delete_app_on_cluster(get_project_mock, delete_app_mock) without return types