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
Fixed #28606 -- Deprecated CachedStaticFilesStorage. #10570
Conversation
@override_settings( | ||
STATICFILES_STORAGE='django.contrib.staticfiles.storage.CachedStaticFilesStorage', | ||
) | ||
class TestCollectionCachedStorage(TestHashedFiles, CollectionTestCase): | ||
""" | ||
Tests for the Cache busting storage | ||
""" | ||
@ignore_warnings(category=RemovedInDjango31Warning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required given the class is already decorated?
@@ -282,6 +282,7 @@ def test_cache_key_memcache_validation(self): | |||
cache_validator.validate_key(cache_key) | |||
self.assertEqual(cache_key, 'staticfiles:821ea71ef36f95b3922a77f7364670e7') | |||
|
|||
@ignore_warnings(category=RemovedInDjango31Warning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required given the class is already decorated?
class TestCachedStaticFilesStorageDeprecation(SimpleTestCase): | ||
def test_warning(self): | ||
from django.contrib.staticfiles.storage import CachedStaticFilesStorage | ||
from django.utils.deprecation import RemovedInDjango31Warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess these imports were moved here for easier removal once the deprecation period ends?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
https://code.djangoproject.com/ticket/28606