@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_bigquery_operator_extra_link_when_single_query(self, mock_hook, create_task_instance_of_operator):
    ti = create_task_instance_of_operator(BigQueryExecuteQueryOperator, dag_id=TEST_DAG_ID, execution_date=DEFAULT_DATE, task_id=TASK_ID, sql='SELECT * FROM test_table')
    bigquery_task = ti.task
    job_id = '12345'
    ti.xcom_push(key='job_id', value=job_id)
    assert (f'https://console.cloud.google.com/bigquery?j={job_id}' == bigquery_task.get_extra_links(ti, BigQueryConsoleLink.name))
@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_bigquery_operator_extra_link_when_single_query(self, mock_hook, create_task_instance_of_operator):
    ti = create_task_instance_of_operator(BigQueryExecuteQueryOperator, dag_id=TEST_DAG_ID, execution_date=DEFAULT_DATE, task_id=TASK_ID, sql='SELECT * FROM test_table')
    bigquery_task = ti.task
    job_id = '12345'
    ti.xcom_push(key='job_id', value=job_id)
    assert (f'https://console.cloud.google.com/bigquery?j={job_id}' == bigquery_task.get_extra_links(ti, BigQueryConsoleLink.name))