Skip to content

Commit 9de3cc9

Browse files
authored
Add moto5 support (#1464)
1 parent d87bc02 commit 9de3cc9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_s3.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from django.test import TestCase
2222
from django.test import override_settings
2323
from django.utils.timezone import is_aware
24-
from moto import mock_s3
24+
from moto import mock_aws
2525

2626
from storages.backends import s3
2727
from tests.utils import NonSeekableContentFile
@@ -1078,10 +1078,10 @@ def test_reopening(self):
10781078
self.assertIsNone(f._multipart)
10791079

10801080

1081-
@mock_s3
1081+
@mock_aws
10821082
class S3StorageTestsWithMoto(TestCase):
10831083
"""
1084-
Using mock_s3 as a class decorator automatically decorates methods,
1084+
Using mock_aws as a class decorator automatically decorates methods,
10851085
but NOT classmethods or staticmethods.
10861086
"""
10871087

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ deps =
2222
django5.0: django~=5.0.0
2323
django5.1: django~=5.1.0
2424
djangomain: https://github.com/django/django/archive/main.tar.gz
25-
moto<5
25+
moto
2626
pytest
2727
pytest-cov
2828
rsa

0 commit comments

Comments
 (0)