@@ -472,6 +472,7 @@ def test_callback_called_once_with_sigv4(self):
472
472
# twice when using signature version 4.
473
473
self .amount_seen = 0
474
474
lock = threading .Lock ()
475
+
475
476
def progress_callback (amount ):
476
477
with lock :
477
478
self .amount_seen += amount
@@ -593,9 +594,11 @@ def test_download_above_threshold(self):
593
594
594
595
def test_download_file_with_directory_not_exist (self ):
595
596
transfer = self .create_s3_transfer ()
596
- self .client .put_object (Bucket = self .bucket_name ,
597
- Key = 'foo.txt' ,
598
- Body = b'foo' )
597
+ self .client .put_object (
598
+ Bucket = self .bucket_name ,
599
+ Key = 'foo.txt' ,
600
+ Body = b'foo'
601
+ )
599
602
self .addCleanup (self .delete_object , 'foo.txt' )
600
603
download_path = os .path .join (self .files .rootdir , 'a' , 'b' , 'c' ,
601
604
'downloaded.txt' )
@@ -667,7 +670,7 @@ def test_transfer_methods_through_bucket(self):
667
670
# This is just a sanity check to ensure that the bucket interface work.
668
671
key = 'bucket.txt'
669
672
bucket = self .session .resource ('s3' ).Bucket (self .bucket_name )
670
- filename = self .files .create_file_with_size (key , 1024 * 1024 )
673
+ filename = self .files .create_file_with_size (key , 1024 * 1024 )
671
674
bucket .upload_file (Filename = filename , Key = key )
672
675
self .addCleanup (self .delete_object , key )
673
676
download_path = os .path .join (self .files .rootdir , unique_id ('foo' ))
@@ -678,7 +681,7 @@ def test_transfer_methods_through_object(self):
678
681
# This is just a sanity check to ensure that the object interface work.
679
682
key = 'object.txt'
680
683
obj = self .session .resource ('s3' ).Object (self .bucket_name , key )
681
- filename = self .files .create_file_with_size (key , 1024 * 1024 )
684
+ filename = self .files .create_file_with_size (key , 1024 * 1024 )
682
685
obj .upload_file (Filename = filename )
683
686
self .addCleanup (self .delete_object , key )
684
687
download_path = os .path .join (self .files .rootdir , unique_id ('foo' ))
0 commit comments