build: remove boto old version (#31282)

This commit is contained in:
Muhammad Umar Khan
2023-02-09 15:21:10 +05:00
committed by GitHub
parent 3726d122f9
commit 14e6040141
13 changed files with 25 additions and 25 deletions

View File

@@ -117,14 +117,14 @@ def skip_signal(signal, **kwargs):
class MockS3BotoMixin:
"""
TestCase mixin that mocks the S3BotoStorage save method and s3 connection.
TestCase mixin that mocks the S3Boto3Storage save method and s3 connection.
"""
def setUp(self):
super().setUp()
self._mocked_connection = patch('boto.connect_s3', return_value=Mock())
self.mocked_connection = self._mocked_connection.start()
self.patcher = patch('storages.backends.s3boto.S3BotoStorage.save')
self.patcher = patch('storages.backends.s3boto3.S3Boto3Storage.save')
self.patcher.start()
def tearDown(self):