mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 09:13:23 +00:00
Fixing pep8 errors in boto tests
This commit is contained in:
@@ -6,11 +6,11 @@ import boto.iam # NOQA
|
|||||||
from boto.s3.connection import S3Connection # NOQA
|
from boto.s3.connection import S3Connection # NOQA
|
||||||
from boto.s3.key import Key # NOQA
|
from boto.s3.key import Key # NOQA
|
||||||
import vcr # NOQA
|
import vcr # NOQA
|
||||||
try: # NOQA
|
try: # NOQA
|
||||||
from ConfigParser import DuplicateSectionError # NOQA
|
from ConfigParser import DuplicateSectionError # NOQA
|
||||||
except ImportError: # NOQA
|
except ImportError: # NOQA
|
||||||
# python3
|
# python3
|
||||||
from configparser import DuplicateSectionError # NOQA
|
from configparser import DuplicateSectionError # NOQA
|
||||||
|
|
||||||
|
|
||||||
def test_boto_stubs(tmpdir):
|
def test_boto_stubs(tmpdir):
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import pytest
|
import pytest
|
||||||
boto3 = pytest.importorskip("boto3")
|
boto3 = pytest.importorskip("boto3")
|
||||||
|
|
||||||
import boto3
|
import boto3 # NOQA
|
||||||
import vcr
|
import vcr # NOQA
|
||||||
|
|
||||||
bucket = 'boto3-demo-1337' # a bucket you can access
|
bucket = 'boto3-demo-1337' # a bucket you can access
|
||||||
key = 'test/my_test.txt' # key with r+w 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()
|
o = s3_resource.Object(bucket, key).get()
|
||||||
assert content == o['Body'].read().decode('utf-8')
|
assert content == o['Body'].read().decode('utf-8')
|
||||||
assert cass.all_played
|
assert cass.all_played
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user