docstr: Test the execute function in case where the run is successful.
docstr_tok: ["Test","the","execute","function","in","case","where","the","run","is","successful","."]
code: def test_exec_success(self, db_mock_class):
      """
      Test the execute function in case where the run is successful.
      """
      run = {
          "new_cluster": NEW_CLUSTER,
          "notebook_task": NOTEBOOK_TASK,
      }
      op = DatabricksSubmitRunOperator(task_id=TASK_ID, json=run)
      db_mock = db_mock_class.return_value
      db_mock.submit_run.return_value = 1
      db_mock.get_run = make_run_with_state_mock(
          "TERMINATED", "SUCCESS"
      )
  
      op.execute(None)
  
      expected = utils.normalise_json_content(
          {
              "new_cluster": NEW_CLUSTER,
              "notebook_task": NOTEBOOK_TASK,
              "run_name": TASK_ID,
          }
      )
      db_mock_class.assert_called_once_with(
          DEFAULT_CONN_ID,
          retry_limit=op.databricks_retry_limit,
          retry_delay=op.databricks_retry_delay,
          retry_args=None,
          caller="DatabricksSubmitRunOperator",
      )
  
      db_mock.submit_run.assert_called_once_with(expected)
      db_mock.get_run_page_url.assert_called_once_with(RUN_ID)
      db_mock.get_run.assert_called_once_with(RUN_ID)
      assert RUN_ID == op.run_id
  
imports: from __future__ import annotations
  from datetime import datetime
  from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  from airflow.exceptions import AirflowException, TaskDeferred
  from airflow.models import DAG
  from airflow.providers.databricks.hooks.databricks import RunState
  from airflow.providers.databricks.operators.databricks import DatabricksCreateJobsOperator, DatabricksRunNowDeferrableOperator, DatabricksRunNowOperator, DatabricksSubmitRunDeferrableOperator, DatabricksSubmitRunOperator
  from airflow.providers.databricks.triggers.databricks import DatabricksExecutionTrigger
  from airflow.providers.databricks.utils import databricks
label_desc: Use image node_id 18 for calling the TestDatabricksSubmitRunOperator obj's underlying member method code with example usage: obj.test_exec_success(db_mock_class) without return types