kalyani-subbiah commented on code in PR #23654:
URL: https://github.com/apache/airflow/pull/23654#discussion_r876386262
##########
tests/providers/amazon/aws/hooks/test_s3.py:
##########
@@ -487,12 +487,21 @@ def test_download_file(self, mock_temp_file):
s3_hook.get_key = Mock(return_value=s3_obj)
key = 'test_key'
bucket = 'test_bucket'
-
+
s3_hook.download_file(key=key, bucket_name=bucket)
s3_hook.get_key.assert_called_once_with(key, bucket)
s3_obj.download_fileobj.assert_called_once_with(mock_temp_file)
+ def test_download_file2(self, s3_bucket):
Review Comment:
Hi, thanks for pointing it out - will do once I get some time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]