From 624455c89aff408653adc9d8cba2f1572228a91c Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Wed, 31 Jul 2019 14:01:03 -0400 Subject: [PATCH] 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. --- common/test/utils.py | 2 +- lms/djangoapps/verify_student/tests/test_views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/test/utils.py b/common/test/utils.py index fcf883e76b..65bd4002a9 100644 --- a/common/test/utils.py +++ b/common/test/utils.py @@ -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): diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index 2f2bb4c1f9..77ceff7dca 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -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()