Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add moto5 support #1464

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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