@@ -302,7 +302,7 @@ async def test_landsat_storage_client_download(granule: USGSLandsatStorageGranul
302302 await store .put_async (
303303 f"{ granule .location .removeprefix ('s3://usgs-landsat/' )} /{ granule .granule_name } " , b"content1"
304304 )
305- with patch ("tilebox.storage.aio.S3Store" ) as store_mock :
305+ with patch ("tilebox.storage.aio.S3Store" ) as store_mock , patch ( "tilebox.storage.aio.Boto3CredentialProvider" ) :
306306 store_mock .return_value = store
307307 landsat = USGSLandsatStorageClient (cache_directory = Path (tmp_path ))
308308
@@ -327,7 +327,7 @@ async def test_landsat_storage_client_list_objects(granule: USGSLandsatStorageGr
327327 f"{ granule .location .removeprefix ('s3://usgs-landsat/' )} /{ granule .granule_name } _thumb_small.jpeg" ,
328328 b"content2" ,
329329 )
330- with patch ("tilebox.storage.aio.S3Store" ) as store_mock :
330+ with patch ("tilebox.storage.aio.S3Store" ) as store_mock , patch ( "tilebox.storage.aio.Boto3CredentialProvider" ) :
331331 store_mock .return_value = store
332332 landsat = USGSLandsatStorageClient (cache_directory = Path (tmp_path ))
333333
@@ -351,7 +351,7 @@ async def test_landsat_storage_client_download_objects(granule: USGSLandsatStora
351351 await store .put_async (
352352 f"{ granule .location .removeprefix ('s3://usgs-landsat/' )} /other_product_{ granule .granule_name } " , b"content2"
353353 )
354- with patch ("tilebox.storage.aio.S3Store" ) as store_mock :
354+ with patch ("tilebox.storage.aio.S3Store" ) as store_mock , patch ( "tilebox.storage.aio.Boto3CredentialProvider" ) :
355355 store_mock .return_value = store
356356 landsat = USGSLandsatStorageClient (cache_directory = Path (tmp_path ))
357357
0 commit comments