@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_invalid_source_format(self, mock_get_service):
    with pytest.raises(Exception, match="JSON is not a valid source format. Please use one of the following types: \\['CSV', 'NEWLINE_DELIMITED_JSON', 'AVRO', 'GOOGLE_SHEETS', 'DATASTORE_BACKUP', 'PARQUET'\\]"):
        self.hook.run_load('test.test', 'test_schema.json', ['test_data.json'], source_format='json')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_service')
def test_invalid_source_format(self, mock_get_service):
    with pytest.raises(Exception, match="JSON is not a valid source format. Please use one of the following types: \\['CSV', 'NEWLINE_DELIMITED_JSON', 'AVRO', 'GOOGLE_SHEETS', 'DATASTORE_BACKUP', 'PARQUET'\\]"):
        self.hook.run_load('test.test', 'test_schema.json', ['test_data.json'], source_format='json')