Russell Keith-Magee
|
afd040d4d3
Updated test assertions that have been deprecated by the move to unittest2. In summary, this means:
|
14 жил өмнө |
Alex Gaynor
|
5bc0ec4ec4
Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite.
|
14 жил өмнө |
Russell Keith-Magee
|
121d2e3678
Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch.
|
14 жил өмнө |
Jacob Kaplan-Moss
|
c40f715257
Fixed #10687: fixed request parsing when upload_handlers is empty. Thanks, Armin Ronacher.
|
16 жил өмнө |
Karen Tracey
|
d0c897d660
Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times.
|
16 жил өмнө |
Karen Tracey
|
668bc4f7be
Fixed #10254: Changed the regex in get_valid_filename to allow unicode alphanumerics (thanks gulliver). Also updated the file_uploads test for this case to check the name after saving the uploaded file. As it was the test ensured that files with unicode characters in their names could be uploaded, but it wasn't actually ensuring that the unicode characters were preserved through save.
|
16 жил өмнө |
Karen Tracey
|
344f16e220
Fixed #8138 -- Changed django.test.TestCase to rollback tests (when the database supports it) instead of flushing and reloading the database. This can substantially reduce the time it takes to run large test suites.
|
16 жил өмнө |
Jacob Kaplan-Moss
|
15644cb255
Fixed #8622: accessing POST after a POST handling exception no longer throws the server into an infinite loop. Thanks to vung for tracking this one down and fixing it.
|
16 жил өмнө |
Jacob Kaplan-Moss
|
7899568e01
File storage refactoring, adding far more flexibility to Django's file handling. The new files.txt document has details of the new features.
|
16 жил өмнө |
Gary Wilson Jr
|
c85c8f8891
Fixed #7919 -- md5 and sha modules are deprecated since Python 2.5, use hashlib module when available. Patch from Karen Tracey.
|
16 жил өмнө |
Malcolm Tredinnick
|
103d484807
Fixed #7658 -- Added some Windows-specific tempfile handling. The standard
|
16 жил өмнө |
Russell Keith-Magee
|
d911a64ce8
Fixed #6450 -- Improved the checking of errors when creating the directories for saved files. Thanks to henry@precheur.org for the report and patch, and vung for the excellent test case.
|
16 жил өмнө |
Jacob Kaplan-Moss
|
8e852a92ec
Fixed #7613: fixed file_upload tests when LANG=C. Thanks, eddymul.
|
16 жил өмнө |
Jacob Kaplan-Moss
|
9dabd1f8ff
Fixed #7651: uploading multiple files with the same name now work. Also, in order to test the problem the test client now handles uploading multiple files at once. Patch from Mike Axiak.
|
16 жил өмнө |
Jacob Kaplan-Moss
|
d725cc9734
Fixed #2070: refactored Django's file upload capabilities.
|
16 жил өмнө |