Form tests are set to upload files to '/'
|Reported by:||Marty Alchin||Owned by:||Marty Alchin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The tests in
tests/regressiontests/forms/models.py include a
FileModel that's currently configured with
upload_to='/' . Because of the changes in , this is no longer allowed unless
MEDIA_ROOT is also set to
'/' , which is highly unlikely to be the case. Currently, the test doesn't attempt to save the file, so this doesn't cause a failure, but with the work on model validation, the behavior present in this test will cause the file to be saved, which does introduce a failure into the test suite.