Skip to content

Commit

Permalink
Add moto5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
onny committed Oct 28, 2024
1 parent f029e50 commit e1aedcf
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -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
Expand Down Expand Up @@ -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.
"""

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

0 comments on commit e1aedcf

Please sign in to comment.