mirror of
https://github.com/django/django.git
synced 2025-08-30 23:37:50 +00:00
Created import-time test temp dirs in known location
Refs #17215. In the same spirit as 5de31cb8cb
.
This commit is contained in:
parent
1d9596025e
commit
809362518d
4 changed files with 6 additions and 4 deletions
|
@ -23,7 +23,7 @@ from .models import FileModel
|
|||
|
||||
|
||||
UNICODE_FILENAME = 'test-0123456789_中文_Orléans.jpg'
|
||||
MEDIA_ROOT = sys_tempfile.mkdtemp()
|
||||
MEDIA_ROOT = sys_tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
|
||||
UPLOAD_TO = os.path.join(MEDIA_ROOT, 'test_upload')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue