summaryrefslogtreecommitdiff
path: root/tests/files
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23888 -- Fixed crash in File.__repr__() when name contains unicode.Sergey Fedoseev2014-11-241-6/+5
|
* Fixed #8149 -- Made File.__iter__() support universal newlines.Jon Dufresne2014-10-301-1/+49
| | | | | | | | | | The following are recognized as ending a line: the Unix end-of-line convention '\n', the Windows convention '\r\n', and the old Macintosh convention '\r'. http://www.python.org/dev/peps/pep-0278 Thanks tchaumeny for review.
* Fixed #22307 -- Fixed SpooledTemporaryFile bug in File class.Hans Lawrenz2014-03-211-0/+14
| | | | | | | Added condition to prevent checking the existence of a file name of a file like object when the name attribute is None. This is necessary because a SpooledTemporaryFile won't exist on the file system or have a name until it has reached its max_size. Also added tests.
* Removed PIL compatability layer per deprecation timeline.Tim Graham2014-03-211-8/+8
| | | | refs #19934.
* Fixed #22107 -- Fixed django.core.files.File object iteration.Baptiste Mispelon2014-02-201-0/+8
| | | | | | | Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch.
* Suppressed ResourceWarning in files testsClaude Paroz2014-01-031-4/+5
|
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-2/+0
|
* Rearranged some file-related testsClaude Paroz2013-10-275-159/+140
| | | | Just moving around some tests to be more logically grouped.
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Fixed #21268 -- Fixed E303 pep8 warningsAlasdair Nicol2013-10-181-1/+0
|
* Close file after tests added in 945e033a69.Ramiro Morales2013-10-141-0/+4
| | | | Avoids failures on Windows. Refs #8918.
* Fixed #8918 -- Made FileField.upload_to optional.Tim Graham2013-10-112-0/+7
| | | | | Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
* Fixed #21122 -- Improved clean up of test temp directory on WindowsKevin Christopher Henry2013-10-021-0/+3
| | | | | - Fixed test that didn't close the files it opened - Caught and handled exception when temp directory cannot be removed
* Fixed #21033 -- Fixed uploaded filenames not always being truncated to 255 ↵homm2013-09-101-1/+0
| | | | characters
* Removed unneeded imports in tests's __init__.py and unified them.Florian Apolloner2013-09-091-1/+0
|
* Fixed #11857 -- Added missing 'closed' property on TemporaryFile class.Christopher Adams2013-09-061-0/+15
| | | | | | | | | | - TemporaryFile now minimally mocks the API of the Python standard library class tempfile.NamedTemporaryFile to avoid AttributeError exceptions. - The symbol django.core.files.NamedTemporaryFile is actually assigned as a different class on different operating systems. - The bug only occurred if Django is running on Windows, hence why it was hard to diagnose.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Fixed #20486 -- Ensure that file_move_safe raises an error if the ↵Russell Keith-Magee2013-06-201-0/+14
| | | | | | destination already exists. Thanks to kux for the report, and Russ Webber for the patch.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+179