Revert "build: remove boto old version (#31282)" (#31733)

This reverts commit 14e6040141.
This commit is contained in:
Usama Sadiq
2023-02-09 18:36:59 +05:00
committed by GitHub
parent 14e6040141
commit 997f194669
13 changed files with 25 additions and 25 deletions

View File

@@ -2749,8 +2749,7 @@ class TestInstructorAPILevelsDataDump(SharedModuleStoreTestCase, LoginEnrollment
ex_status = 503
ex_reason = 'Slow Down'
url = reverse(endpoint, kwargs={'course_id': str(self.course.id)})
with patch('storages.backends.s3boto3.S3Boto3Storage.listdir',
side_effect=BotoServerError(ex_status, ex_reason)):
with patch('storages.backends.s3boto.S3BotoStorage.listdir', side_effect=BotoServerError(ex_status, ex_reason)):
if endpoint in INSTRUCTOR_GET_ENDPOINTS:
response = self.client.get(url)
else: