@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_bigquery_operator_extra_link_when_missing_job_id(self, mock_hook, create_task_instance_of_operator):
    ti = create_task_instance_of_operator(BigQueryExecuteQueryOperator, dag_id=TEST_DAG_ID, task_id=TASK_ID, sql='SELECT * FROM test_table')
    bigquery_task = ti.task
    assert ('' == bigquery_task.get_extra_links(ti, BigQueryConsoleLink.name))
@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_bigquery_operator_extra_link_when_missing_job_id(self, mock_hook, create_task_instance_of_operator):
    ti = create_task_instance_of_operator(BigQueryExecuteQueryOperator, dag_id=TEST_DAG_ID, task_id=TASK_ID, sql='SELECT * FROM test_table')
    bigquery_task = ti.task
    assert ( == bigquery_task.get_extra_links(ti, BigQueryConsoleLink.name))