mirror of
https://github.com/django/django.git
synced 2025-09-24 19:23:03 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
parent
f68fa8b45d
commit
9c19aff7c7
1992 changed files with 139577 additions and 96284 deletions
|
@ -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",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue