Skip to content

Commit

Permalink
Pin to moto<5 until we drop python 3.7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
craigds committed Mar 11, 2024
1 parent 9b1b76f commit 489a394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
"""

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 489a394

Please sign in to comment.