Skip to content

Commit

Permalink
Remove deprecated template_fields from GoogleDriveToGCSOperator (#19991)
Browse files Browse the repository at this point in the history
This prevented `op.dry_run()` from working.
  • Loading branch information
bradleybonitatibus committed Dec 2, 2021
1 parent 53b2415 commit cb082d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions airflow/providers/google/cloud/transfers/gdrive_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ class GoogleDriveToGCSOperator(BaseOperator):
template_fields = [
"bucket_name",
"object_name",
"destination_bucket",
"destination_object",
"folder_id",
"file_name",
"drive_id",
Expand Down
2 changes: 2 additions & 0 deletions tests/providers/google/cloud/transfers/test_gdrive_to_gcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,5 @@ def test_execute(self, mock_gdrive_hook, mock_gcs_hook):
mock_gcs_hook.return_value.provide_file_and_upload.assert_called_once_with(
bucket_name=BUCKET, object_name=OBJECT
)

assert op.dry_run() is None

0 comments on commit cb082d3

Please sign in to comment.
  翻译: