@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_query_sql_dialect_default(self, mock_insert, _):
    self.hook.run_query('query')
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['query']['useLegacySql'] is True)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_query_sql_dialect_default(self, mock_insert, _):
    self.hook.run_query('query')
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['query']['useLegacySql'] is True)