docstr: Test successful run of execute function for JSON
docstr_tok: ["Test","successful","run","of","execute","function","for","JSON"]
code: def test_exec_success_json(
      self, gcs_hook_mock_class, mysql_hook_mock_class
  ):
      """Test successful run of execute function for JSON"""
      op = MySQLToGCSOperator(
          task_id=TASK_ID,
          mysql_conn_id=MYSQL_CONN_ID,
          sql=SQL,
          bucket=BUCKET,
          filename=JSON_FILENAME,
      )
  
      mysql_hook_mock = mysql_hook_mock_class.return_value
      mysql_hook_mock.get_conn().cursor().__iter__.return_value = iter(
          ROWS
      )
      mysql_hook_mock.get_conn().cursor().description = (
          CURSOR_DESCRIPTION
      )
  
      gcs_hook_mock = gcs_hook_mock_class.return_value
  
      def _assert_upload(
          bucket,
          obj,
          tmp_filename,
          mime_type=None,
          gzip=False,
          metadata=None,
      ):
          assert BUCKET == bucket
          assert JSON_FILENAME.format(0) == obj
          assert "application/json" == mime_type
          assert not gzip
          with open(tmp_filename, "rb") as file:
              assert b"".join(NDJSON_LINES) == file.read()
  
      gcs_hook_mock.upload.side_effect = _assert_upload
  
      op.execute(None)
  
      mysql_hook_mock_class.assert_called_once_with(
          mysql_conn_id=MYSQL_CONN_ID
      )
      mysql_hook_mock.get_conn().cursor().execute.assert_called_once_with(
          SQL
      )
  
file_path: airflow/tests/providers/google/cloud/transfers/test_mysql_to_gcs.py
imports: from __future__ import annotations
  import datetime
  import decimal
  from unittest import mock
  import pytest
label_desc: Use image node_id 3 for calling the TestMySqlToGoogleCloudStorageOperator obj's underlying member method code with example usage: obj.test_exec_success_json(gcs_hook_mock_class, mysql_hook_mock_class) without return types