From: Antonio Valentino Date: Sun, 28 Sep 2025 17:58:21 +0000 Subject: no-mypy-boto3-s3 Forwarded: not-needed --- tests/units/test_auth_plugins.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/units/test_auth_plugins.py b/tests/units/test_auth_plugins.py index 7dedb15..8458c8d 100644 --- a/tests/units/test_auth_plugins.py +++ b/tests/units/test_auth_plugins.py @@ -26,7 +26,12 @@ from unittest import mock import boto3 import requests import responses -from mypy_boto3_s3.service_resource import BucketObjectsCollection +try: + from mypy_boto3_s3.service_resource import BucketObjectsCollection +except ImportError: + have_mypy_boto3_s3 = False +else: + have_mypy_boto3_s3 = True from pystac.utils import now_in_utc from requests import Request, Response, Timeout from requests.auth import AuthBase @@ -814,6 +819,7 @@ class TestAuthPluginAwsAuth(BaseAuthPluginTest): keys_dict = {"aws_profile": self.profile_name} self.assertDictEqual(keys_dict, plugin_auth_profile.config.credentials) + @unittest.skipIf(not have_mypy_boto3_s3, reason="mypy_boto3_s3 not available") @mock.patch( "eodag.plugins.authentication.aws_auth.create_s3_session", autospec=True )