diff options
Diffstat (limited to 'tests/file_storage/tests.py')
-rw-r--r-- | tests/file_storage/tests.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/file_storage/tests.py b/tests/file_storage/tests.py index 2718f07cad..2c08a5312f 100644 --- a/tests/file_storage/tests.py +++ b/tests/file_storage/tests.py @@ -13,20 +13,19 @@ import warnings from datetime import datetime, timedelta from django.core.cache import cache -from django.core.exceptions import SuspiciousOperation, SuspiciousFileOperation -from django.core.files.base import File, ContentFile +from django.core.exceptions import SuspiciousFileOperation, SuspiciousOperation +from django.core.files.base import ContentFile, File from django.core.files.storage import FileSystemStorage, get_storage_class -from django.core.files.uploadedfile import (InMemoryUploadedFile, SimpleUploadedFile, - TemporaryUploadedFile) -from django.test import LiveServerTestCase, SimpleTestCase -from django.test import override_settings +from django.core.files.uploadedfile import ( + InMemoryUploadedFile, SimpleUploadedFile, TemporaryUploadedFile, +) +from django.test import LiveServerTestCase, SimpleTestCase, override_settings from django.utils import six -from django.utils.six.moves.urllib.request import urlopen from django.utils._os import upath +from django.utils.six.moves.urllib.request import urlopen from .models import Storage, temp_storage, temp_storage_location - FILE_SUFFIX_REGEX = '[A-Za-z0-9]{7}' |