@mock.patch('airflow.providers.google.cloud.hooks.bigquery.LoadJob')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_client')
def test_run_with_configuration_location(self, mock_client, mock_job):
    running_job_id = 'job_vjdi28vskdui2onru23'
    location = 'asia-east1'
    mock_job._JOB_TYPE = 'load'
    conf = {'load': {}}
    self.hook.running_job_id = running_job_id
    self.hook.location = location
    self.hook.run_with_configuration(conf)
    mock_client.assert_called_once_with(project_id=PROJECT_ID, location=location)
    mock_job.from_api_repr.assert_called_once_with({'configuration': conf, 'jobReference': {'jobId': mock.ANY, 'projectId': PROJECT_ID, 'location': location}}, mock_client.return_value)
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.LoadJob')
@mock.patch('airflow.providers.google.cloud.hooks.bigquery.BigQueryHook.get_client')
def test_run_with_configuration_location(self, mock_client, mock_job):
    running_job_id = 'job_vjdi28vskdui2onru23'
    location = 'asia-east1'
    mock_job._JOB_TYPE = 'load'
    conf = {'load': {}}
    self.hook.running_job_id = running_job_id
    self.hook.location = location
    self.hook.run_with_configuration(conf)
    mock_client.assert_called_once_with(project_id=PROJECT_ID, location=location)
    mock_job.from_api_repr.assert_called_once_with({'configuration': conf, 'jobReference': {'jobId': mock.ANY, 'projectId': PROJECT_ID, 'location': location}}, mock_client.return_value)