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. """ diff --git a/tox.ini b/tox.ini index 488d4ef2..e9a318d5 100644 --- a/tox.ini +++ b/tox.ini @@ -26,7 +26,7 @@ deps = django5.0: django~=5.0.0 django5.1: django~=5.1.0 djangomain: https://github.com/django/django/archive/main.tar.gz - moto<5 + moto pytest pytest-cov rsa