adiranjan25 commented on code in PR #76857:
URL: https://github.com/apache/airflow/pull/76857#discussion_r4661559190


##########
providers/amazon/tests/unit/amazon/aws/hooks/test_s3.py:
##########
@@ -1613,6 +1613,98 @@ def test_function(self, bucket_name=None):
                 "Expected provided bucket_name to take precedence over 
fallback"
             )
 
+    @pytest.mark.asyncio
+    @pytest.mark.parametrize(
+        ("extra", "schema", "expected_bucket"),
+        [
+            (
+                {"service_config": {"s3": {"bucket_name": 
"configured-bucket"}}},
+                "schema-bucket",
+                "configured-bucket",
+            ),
+            ({}, "schema-bucket", "schema-bucket"),
+            ({}, None, None),
+        ],
+        ids=["configured-bucket", "schema-fallback", "no-config"],
+    )
+    @mock.patch(
+        "airflow.providers.amazon.aws.hooks.s3.get_async_extra_dejson",
+        new_callable=AsyncMock,

Review Comment:
   Thanks @dabla for the detailed review and suggestions. I'll update the async 
tests to use `autospec=True` and exercise the actual connection extras without 
mocking `get_async_extra_dejson`. I'll also clarify the intentional schema 
fallback in the PR description and follow up once the changes are pushed.



-- 
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]

Reply via email to