mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -9,7 +9,7 @@ class FilesCheckTests(SimpleTestCase):
|
||||
def test_file_upload_temp_dir(self):
|
||||
tests = [
|
||||
None,
|
||||
'',
|
||||
"",
|
||||
Path.cwd(),
|
||||
str(Path.cwd()),
|
||||
]
|
||||
@@ -18,7 +18,7 @@ class FilesCheckTests(SimpleTestCase):
|
||||
self.assertEqual(check_setting_file_upload_temp_dir(None), [])
|
||||
|
||||
def test_file_upload_temp_dir_nonexistent(self):
|
||||
for setting in ['nonexistent', Path('nonexistent')]:
|
||||
for setting in ["nonexistent", Path("nonexistent")]:
|
||||
with self.subTest(setting), self.settings(FILE_UPLOAD_TEMP_DIR=setting):
|
||||
self.assertEqual(
|
||||
check_setting_file_upload_temp_dir(None),
|
||||
@@ -26,7 +26,7 @@ class FilesCheckTests(SimpleTestCase):
|
||||
Error(
|
||||
"The FILE_UPLOAD_TEMP_DIR setting refers to the "
|
||||
"nonexistent directory 'nonexistent'.",
|
||||
id='files.E001',
|
||||
id="files.E001",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user