#23251: Use a temporary folder to store uploaded files during tests
-------------------------------------+-------------------------------------
Reporter: Shai Berger | Owner: Bhavya
| Peshavaria
Type: Bug | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: file storage upload | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Bhavya Peshavaria):
* cc: Bhavya Peshavaria (added)
* owner: (none) => Bhavya Peshavaria
* status: new => assigned
Comment:
I like the idea of using `TESTS_MEDIA_ROOT` as suggested by Ahmad
Abdallah. However, how would we handle it when the user passes a custom
`Storage` object rather than using `DEFAULT_FILE_STORAGE`?
My current plan is to keep the `TESTS_MEDIA_ROOT` optional in Django
settings. If it is defined, then the files will be uploaded to that path.
If not, then will follow default behaviour to maintain reverse
compatibility.
--
Ticket URL: <https://code.djangoproject.com/ticket/23251#comment:15>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070181fbea2eba-5832d89a-cbb3-49a8-b443-69e3a1e64abb-000000%40eu-central-1.amazonses.com.