@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_empty_table')
def test_create_external_table_labels(self, mock_create):
    labels = {'label1': 'test1', 'label2': 'test2'}
    self.hook.create_external_table(external_project_dataset_table='my_dataset.my_table', schema_fields=[], source_uris=[], labels=labels)
    (_, kwargs) = mock_create.call_args
    self.assertDictEqual(kwargs['table_resource']['labels'], labels)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.create_empty_table')
def test_create_external_table_labels(self, mock_create):
    labels = {'label1': 'test1', 'label2': 'test2'}
    self.hook.create_external_table(external_project_dataset_table='my_dataset.my_table', schema_fields=[], source_uris=[], labels=labels)
    (_, kwargs) = mock_create.call_args
    self.assertDictEqual(kwargs['table_resource']['labels'], labels)