libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quent...@apache.org
Subject libcloud git commit: test_s3: Fix lint
Date Sun, 08 Apr 2018 17:24:33 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 8434394e1 -> c7d67ef98


test_s3: Fix lint


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/c7d67ef9
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/c7d67ef9
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/c7d67ef9

Branch: refs/heads/trunk
Commit: c7d67ef986b6e5048f9087e7ccb069ac72570a09
Parents: 8434394
Author: Quentin Pradet <quentinp@apache.org>
Authored: Sun Apr 8 21:23:11 2018 +0400
Committer: Quentin Pradet <quentinp@apache.org>
Committed: Sun Apr 8 21:23:11 2018 +0400

----------------------------------------------------------------------
 libcloud/test/storage/test_s3.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c7d67ef9/libcloud/test/storage/test_s3.py
----------------------------------------------------------------------
diff --git a/libcloud/test/storage/test_s3.py b/libcloud/test/storage/test_s3.py
index 2b0a5da..176529e 100644
--- a/libcloud/test/storage/test_s3.py
+++ b/libcloud/test/storage/test_s3.py
@@ -24,7 +24,7 @@ from hashlib import sha1
 import mock
 from mock import Mock
 from mock import PropertyMock
-import libcloud.utils.files
+import libcloud.utils.files  # NOQA: F401
 
 from libcloud.utils.py3 import ET
 from libcloud.utils.py3 import httplib
@@ -918,7 +918,9 @@ class S3Tests(unittest.TestCase):
         object_name = 'foo_test_stream_data'
         iterator = BytesIO(b('234'))
 
-        with mock.patch('libcloud.utils.files.guess_file_mime_type', autospec=True) as mock_guess_file_mime_type:
+        with mock.patch(
+                'libcloud.utils.files.guess_file_mime_type',
+                autospec=True) as mock_guess_file_mime_type:
             mock_guess_file_mime_type.return_value = ('application/zip', None)
 
             self.driver.upload_object_via_stream(container=container,


Mime
View raw message