mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #34100 -- Made file upload tests use Storage.exists() where appropriate.
This commit is contained in:
parent
6e9e7ec472
commit
c179ad9fe7
4 changed files with 17 additions and 9 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue