Debian Codegraph @

debian/patches/0002-no-mypy-boto3-s3.patch

raw symbols SCIP
1 Fromscip-debian debian eodag 4.7.2+ds-1 eodag/patches/`0002-no-mypy-boto3-s3.patch`#From.: Antonio Valentino <[email protected]scip-debian . . . identity/`[email protected]`.>
2 Datescip-debian debian eodag 4.7.2+ds-1 eodag/patches/`0002-no-mypy-boto3-s3.patch`#Date.: Sun, 28 Sep 2025 17:58:21 +0000
3 Subjectscip-debian debian eodag 4.7.2+ds-1 eodag/patches/`0002-no-mypy-boto3-s3.patch`#Subject.: no-mypy-boto3-s3
4
5 Forwarded: not-needed
6 ---
7 tests/units/test_auth_plugins.py | 8 +++++++-
8 1 file changed, 7 insertions(+), 1 deletion(-)
9
10 diff --git a/tests/units/test_auth_plugins.pyscip-debian debian eodag 4.7.2+ds-1 eodag/upstream/`tests/units/test_auth_plugins.py`: b/tests/units/test_auth_plugins.pyscip-debian debian eodag 4.7.2+ds-1 eodag/upstream/`tests/units/test_auth_plugins.py`:
11 index 7dedb15..8458c8d 100644
12 --- a/tests/units/test_auth_plugins.py
13 +++ b/tests/units/test_auth_plugins.py
14 @@ -26,7 +26,12 @@ from unittest import mock
15 import boto3
16 import requests
17 import responses
18 -from mypy_boto3_s3.service_resource import BucketObjectsCollection
19 +try:
20 + from mypy_boto3_s3.service_resource import BucketObjectsCollection
21 +except ImportError:
22 + have_mypy_boto3_s3 = False
23 +else:
24 + have_mypy_boto3_s3 = True
25 from pystac.utils import now_in_utc
26 from requests import Request, Response, Timeout
27 from requests.auth import AuthBase
28 @@ -814,6 +819,7 @@ class TestAuthPluginAwsAuth(BaseAuthPluginTest):
29 keys_dict = {"aws_profile": self.profile_name}
30 self.assertDictEqual(keys_dict, plugin_auth_profile.config.credentials)
31
32 + @unittest.skipIf(not have_mypy_boto3_s3, reason="mypy_boto3_s3 not available")
33 @mock.patch(
34 "eodag.plugins.authentication.aws_auth.create_s3_session", autospec=True
35 )