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 6acc678
Showing 1 changed file with 3 additions and 3 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

0 comments on commit 6acc678

Please sign in to comment.