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):
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
o = s3_resource.Object(bucket, key).get()
assert content == o['Body'].read().decode('utf-8')
assert cass.all_played
-