diff --git a/tests/test_s3.py b/tests/test_s3.py index e4ce9f1a..33a6277e 100644 --- a/tests/test_s3.py +++ b/tests/test_s3.py @@ -19,7 +19,7 @@ from django.test import TestCase from django.test import override_settings from django.utils.timezone import is_aware -from moto import mock_aws +from moto import mock_s3 from storages.backends import s3 from tests.utils import NonSeekableContentFile @@ -1040,10 +1040,10 @@ def test_reopening(self): self.assertIsNone(f._multipart) -@mock_aws +@mock_s3 class S3StorageTestsWithMoto(TestCase): """ - Using mock_aws as a class decorator automatically decorates methods, + Using mock_s3 as a class decorator automatically decorates methods, but NOT classmethods or staticmethods. """ diff --git a/tox.ini b/tox.ini index ecaab44c..e6e2c6aa 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,8 @@ deps = django4.2: django~=4.2.0 django5.0: django~=5.0b1 djangomain: https://github.com/django/django/archive/main.tar.gz - moto>=5.0 + # 5 changes API a bit and also requires python 3.8+, so keep this until we drop py 3.7 + moto<5 pytest pytest-cov rsa