@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_execute(self, mock_hook):
    operator = BigQueryUpsertTableOperator(task_id=TASK_ID, dataset_id=TEST_DATASET, table_resource=TEST_TABLE_RESOURCES, project_id=TEST_GCP_PROJECT_ID)
    operator.execute(None)
    mock_hook.return_value.run_table_upsert.assert_called_once_with(dataset_id=TEST_DATASET, project_id=TEST_GCP_PROJECT_ID, table_resource=TEST_TABLE_RESOURCES)
@mock.patch('airflow.providers.google.cloud.operators.bigquery.BigQueryHook')
def test_execute(self, mock_hook):
    operator = BigQueryUpsertTableOperator(task_id=TASK_ID, dataset_id=TEST_DATASET, table_resource=TEST_TABLE_RESOURCES, project_id=TEST_GCP_PROJECT_ID)
    operator.execute(None)
    mock_hook.return_value.run_table_upsert.assert_called_once_with(dataset_id=TEST_DATASET, project_id=TEST_GCP_PROJECT_ID, table_resource=TEST_TABLE_RESOURCES)