@parameterized.expand([('AVRO',), ('PARQUET',), ('NEWLINE_DELIMITED_JSON',), ('DATASTORE_BACKUP',)])
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_load_with_non_csv_as_src_fmt(self, fmt, _):
    try:
        self.hook.run_load(destination_project_dataset_table='my_dataset.my_table', source_uris=[], source_format=fmt, autodetect=True)
    except ValueError:
        self.fail('run_load() raised ValueError unexpectedly!')
@parameterized.expand([('AVRO',), ('PARQUET',), ('NEWLINE_DELIMITED_JSON',), ('DATASTORE_BACKUP',)])
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.insert_job')
def test_run_load_with_non_csv_as_src_fmt(self, fmt, _):
    try:
        self.hook.run_load(destination_project_dataset_table='my_dataset.my_table', source_uris=[], source_format=fmt, autodetect=True)
    except ValueError:
        self.fail('run_load() raised ValueError unexpectedly!')