diff --git a/tests/test_s3.py b/tests/test_s3.py index c6d87a06..064220df 100644 --- a/tests/test_s3.py +++ b/tests/test_s3.py @@ -21,7 +21,7 @@ from django.test import TestCase from django.test import override_settings from django.utils.timezone import is_aware -from moto import mock_s3 +from moto import mock_aws from storages.backends import s3 from tests.utils import NonSeekableContentFile @@ -1070,10 +1070,10 @@ def test_reopening(self): self.assertIsNone(f._multipart) -@mock_s3 +@mock_aws class S3StorageTestsWithMoto(TestCase): """ - Using mock_s3 as a class decorator automatically decorates methods, + Using mock_aws as a class decorator automatically decorates methods, but NOT classmethods or staticmethods. """