[1.8.x] Refs #24652 -- Enforced test isolation in file_storage tests.
Backport of 3db21c351b
from master
This commit is contained in:
parent
525fd2f405
commit
e846ea0649
|
@ -19,7 +19,9 @@ from django.core.files.storage import FileSystemStorage, get_storage_class
|
||||||
from django.core.files.uploadedfile import (
|
from django.core.files.uploadedfile import (
|
||||||
InMemoryUploadedFile, SimpleUploadedFile, TemporaryUploadedFile,
|
InMemoryUploadedFile, SimpleUploadedFile, TemporaryUploadedFile,
|
||||||
)
|
)
|
||||||
from django.test import LiveServerTestCase, SimpleTestCase, override_settings
|
from django.test import (
|
||||||
|
LiveServerTestCase, SimpleTestCase, TestCase, override_settings,
|
||||||
|
)
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
from django.utils._os import upath
|
from django.utils._os import upath
|
||||||
from django.utils.six.moves.urllib.request import urlopen
|
from django.utils.six.moves.urllib.request import urlopen
|
||||||
|
@ -429,7 +431,7 @@ class CustomStorageTests(FileStorageTests):
|
||||||
self.storage.delete(second)
|
self.storage.delete(second)
|
||||||
|
|
||||||
|
|
||||||
class FileFieldStorageTests(SimpleTestCase):
|
class FileFieldStorageTests(TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
shutil.rmtree(temp_storage_location)
|
shutil.rmtree(temp_storage_location)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue