raphaelauv commented on code in PR #46096:
URL: https://github.com/apache/airflow/pull/46096#discussion_r1930750435
##########
providers/tests/amazon/aws/transfers/test_http_to_s3.py:
##########
@@ -74,3 +74,25 @@ def test_execute(self, requests_mock):
assert len(objects_in_bucket["Contents"]) == 1
# the object found should be consistent with dest_key specified earlier
assert objects_in_bucket["Contents"][0]["Key"] == self.s3_key
+
+ @mock_aws
+ def test_execute_stream(self, requests_mock):
+ requests_mock.register_uri("GET", EXAMPLE_URL, content=self.response)
+ conn = boto3.client("s3")
+ conn.create_bucket(Bucket=self.s3_bucket)
+ operator = HttpToS3Operator(
+ task_id="s3_to_file_sensor",
Review Comment:
s3_to_file_sensor- > http_to_s3
--
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]