mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings.
This commit is contained in:
committed by
Mariusz Felisiak
parent
1ec3f0961f
commit
32940d390a
@@ -9,6 +9,7 @@ from io import BytesIO, StringIO
|
||||
from unittest import mock
|
||||
from urllib.parse import quote
|
||||
|
||||
from django.conf import DEFAULT_STORAGE_ALIAS
|
||||
from django.core.exceptions import SuspiciousFileOperation
|
||||
from django.core.files import temp as tempfile
|
||||
from django.core.files.storage import default_storage
|
||||
@@ -806,7 +807,11 @@ class DirectoryCreationTests(SimpleTestCase):
|
||||
sys.platform == "win32", "Python on Windows doesn't have working os.chmod()."
|
||||
)
|
||||
@override_settings(
|
||||
DEFAULT_FILE_STORAGE="django.core.files.storage.FileSystemStorage"
|
||||
STORAGES={
|
||||
DEFAULT_STORAGE_ALIAS: {
|
||||
"BACKEND": "django.core.files.storage.FileSystemStorage",
|
||||
}
|
||||
}
|
||||
)
|
||||
def test_readonly_root(self):
|
||||
"""Permission errors are not swallowed"""
|
||||
|
||||
Reference in New Issue
Block a user