summaryrefslogtreecommitdiff
path: root/tests/file_uploads/tests.py
diff options
context:
space:
mode:
authorFrancesco Panico <panico.francesco@gmail.com>2022-12-30 12:47:59 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-12-30 13:28:47 +0100
commitc179ad9fe7e82dcb80261aa016f2fe18c8fcc181 (patch)
treea8b2b0faa53ee7e84fe1d7aacd3bbd3dec147bb3 /tests/file_uploads/tests.py
parent6e9e7ec472bdc870152e1f4f4130ecc07cdfc820 (diff)
Refs #34100 -- Made file upload tests use Storage.exists() where appropriate.
Diffstat (limited to 'tests/file_uploads/tests.py')
-rw-r--r--tests/file_uploads/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/file_uploads/tests.py b/tests/file_uploads/tests.py
index d5377488ff..ecbee48160 100644
--- a/tests/file_uploads/tests.py
+++ b/tests/file_uploads/tests.py
@@ -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.