@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_with_auto_detect(self, mock_insert):
    destination_project_dataset_table = 'autodetect.table'
    self.hook.run_load(destination_project_dataset_table, [], [], autodetect=True)
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['load']['autodetect'] is True)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_with_auto_detect(self, mock_insert):
    destination_project_dataset_table = 'autodetect.table'
    self.hook.run_load(destination_project_dataset_table, [], [], autodetect=True)
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['load']['autodetect'] is True)