mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #34100 -- Made file upload tests use Storage.exists() where appropriate.
This commit is contained in:
committed by
Mariusz Felisiak
parent
6e9e7ec472
commit
c179ad9fe7
@@ -25,7 +25,8 @@ from .models import FileModel
|
||||
|
||||
UNICODE_FILENAME = "test-0123456789_中文_Orléans.jpg"
|
||||
MEDIA_ROOT = sys_tempfile.mkdtemp()
|
||||
UPLOAD_TO = os.path.join(MEDIA_ROOT, "test_upload")
|
||||
UPLOAD_FOLDER = "test_upload"
|
||||
UPLOAD_TO = os.path.join(MEDIA_ROOT, UPLOAD_FOLDER)
|
||||
|
||||
CANDIDATE_TRAVERSAL_FILE_NAMES = [
|
||||
"/tmp/hax0rd.txt", # Absolute path, *nix-style.
|
||||
|
||||
Reference in New Issue
Block a user