This is an automated email from the ASF dual-hosted git repository.

shahar1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 983b387136e Remove unused S3 bundle test upload helper (#75888)
983b387136e is described below

commit 983b387136e93652aa1a8105b6eeda94ddf8ff16
Author: Hussein Awala <[email protected]>
AuthorDate: Thu Oct 29 06:16:54 2026 +0100

    Remove unused S3 bundle test upload helper (#75888)
    
    The upload helper has no callers and is not a pytest fixture; active S3 
fixtures continue to use boto3.
---
 providers/amazon/tests/unit/amazon/aws/bundles/test_s3.py | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/providers/amazon/tests/unit/amazon/aws/bundles/test_s3.py 
b/providers/amazon/tests/unit/amazon/aws/bundles/test_s3.py
index e8899a2f201..66a521a8220 100644
--- a/providers/amazon/tests/unit/amazon/aws/bundles/test_s3.py
+++ b/providers/amazon/tests/unit/amazon/aws/bundles/test_s3.py
@@ -16,7 +16,6 @@
 # under the License.
 from __future__ import annotations
 
-import os
 from unittest.mock import MagicMock, call
 
 import boto3
@@ -175,15 +174,6 @@ class TestS3DagBundle:
         bundle.initialize()
         assert bundle.s3_hook.region_name == AWS_CONN_ID_REGION
 
-    def _upload_fixtures(self, bucket: str, fixtures_dir: str) -> None:
-        client = boto3.client("s3")
-        fixtures_paths = [
-            os.path.join(path, filename) for path, _, files in 
os.walk(fixtures_dir) for filename in files
-        ]
-        for path in fixtures_paths:
-            key = os.path.relpath(path, fixtures_dir)
-            client.upload_file(Filename=path, Bucket=bucket, Key=key)
-
     def test_refresh(self, s3_bucket, s3_client):
         bundle = S3DagBundle(
             name="test",

Reply via email to