Use deprecated s3 mock from moto.

Longer term we should move to boto3 in general and then we can use the
default moto mock for s3.
This commit is contained in:
Feanil Patel
2019-07-31 14:01:03 -04:00
parent 519e3a7ca3
commit 624455c89a
2 changed files with 2 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ class MockS3Mixin(object):
"""
def setUp(self):
super(MockS3Mixin, self).setUp()
self._mock_s3 = moto.mock_s3()
self._mock_s3 = moto.mock_s3_deprecated()
self._mock_s3.start()
def tearDown(self):

View File

@@ -1489,7 +1489,7 @@ class TestSubmitPhotosForVerification(TestCase):
"DAYS_GOOD_FOR": 10,
})
@httpretty.activate
@moto.mock_s3
@moto.mock_s3_deprecated
def test_submit_photos_for_reverification(self):
# Create the S3 bucket for photo upload
conn = boto.connect_s3()