]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Fixing pep8 errors in boto tests
authorDavid de Sousa <davidesousa@gmail.com>
Wed, 22 Jun 2016 14:54:25 +0000 (16:54 +0200)
committerDavid de Sousa <davidesousa@gmail.com>
Sun, 26 Jun 2016 23:39:49 +0000 (01:39 +0200)
tests/integration/test_boto.py
tests/integration/test_boto3.py

index 404f045319339e15e1431b8286f3d716715dab96..af7295c7e7ce53a4d032f6c88d9dfc75bae3e36c 100644 (file)
@@ -6,11 +6,11 @@ import boto.iam  # NOQA
 from boto.s3.connection import S3Connection  # NOQA
 from boto.s3.key import Key  # NOQA
 import vcr  # NOQA
-try: # NOQA
-    from ConfigParser import DuplicateSectionError # NOQA
-except ImportError: # NOQA
+try:  # NOQA
+    from ConfigParser import DuplicateSectionError  # NOQA
+except ImportError:  # NOQA
     # python3
-    from configparser import DuplicateSectionError # NOQA
+    from configparser import DuplicateSectionError  # NOQA
 
 
 def test_boto_stubs(tmpdir):
index 007309a2ce25af129199f2a20b8933b1b0901dfa..bd355583c608c1d8865fcd338b961c3cf2e9c38b 100644 (file)
@@ -1,8 +1,8 @@
 import pytest
 boto3 = pytest.importorskip("boto3")
 
-import boto3
-import vcr
+import boto3  # NOQA
+import vcr  # NOQA
 
 bucket = 'boto3-demo-1337'              # a bucket you can access
 key = 'test/my_test.txt'                # key with r+w access
@@ -65,4 +65,3 @@ def test_boto_hardcore_mode(tmpdir):
         o = s3_resource.Object(bucket, key).get()
         assert content == o['Body'].read().decode('utf-8')
         assert cass.all_played
-