@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_query_with_arg(self, mock_insert):
    self.hook.run_query(sql='select 1', destination_dataset_table='my_dataset.my_table', labels={'label1': 'test1', 'label2': 'test2'})
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['labels'] == {'label1': 'test1', 'label2': 'test2'})
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_query_with_arg(self, mock_insert):
    self.hook.run_query(sql='select 1', destination_dataset_table='my_dataset.my_table', labels={'label1': 'test1', 'label2': 'test2'})
    (_, kwargs) = mock_insert.call_args
    assert (kwargs['configuration']['labels'] == {'label1': 'test1', 'label2': 'test2'})