1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Fixing pep8 errors in boto tests

This commit is contained in:
David de Sousa
2016-06-22 16:54:25 +02:00
parent 24df79b75f
commit 6da7cd0ea5
2 changed files with 6 additions and 7 deletions

View 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):

View 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