From 6acc67802a701cc6e4ea12782cb6d2bac03dead2 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 28 Oct 2024 09:28:21 +0100 Subject: [PATCH] Add moto5 support --- tests/test_s3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_s3.py b/tests/test_s3.py index c6d87a06..064220df 100644 --- a/tests/test_s3.py +++ b/tests/test_s3.py @@ -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 @@ -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. """