Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/files
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #24963 -- Added File.seekable() on Python 3.Carson Gee2015-06-121-0/+13
|
* Cleanup: Removed the try-except-fail antipattern from testsShai Berger2015-06-051-5/+1
| | | | | | | | | | | | | | | | | | Found cases where testing code was doing try: whatever except (some excption type): self.fail("exception shouldn't be thrown") replaced it with just whatever as this makes the unexpected errors easier to debug, and the tests would fail just as much and aren't rendered less readable. Thanks Markus Holtermann for review
* Fixed #24544 -- Fixed get_image_dimensions() on image ↵steve2015-04-081-2/+19
| | | | | | buffers that Pillow fails to parse. Thanks Steve Kossouho for the report and original patch.
* Fixed #24441 -- Changed get_image_dimensions() return ↵Raúl Cumplido2015-03-252-0/+17
| | | | value for broken images
* Guaranteed removal of temporary files during tests.Aymeric Augustin2015-02-231-2/+2
| | | | | | | Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+5
|
* Fixed #23888 -- Fixed crash in File.__repr__() when name ↵Sergey Fedoseev2014-11-241-6/+5
| | | | contains unicode.
* Fixed #8149 -- Made File.__iter__() support universal ↵Jon Dufresne2014-10-301-1/+49
| | | | | | | | | | | | newlines. 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 ↵Hans Lawrenz2014-03-211-0/+14
| | | | | | | | | class. 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 ↵Baptiste Mispelon2014-02-201-0/+8
| | | | | | | | | iteration. 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 ↵Kevin Christopher Henry2013-10-021-0/+3
| | | | | | | on Windows - 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 ↵homm2013-09-101-1/+0
| | | | being truncated to 255 characters
* Removed unneeded imports in tests's __init__.py and ↵Florian Apolloner2013-09-091-1/+0
| | | | unified them.
* Fixed #11857 -- Added missing 'closed' property on ↵Christopher Adams2013-09-061-0/+15
| | | | | | | | | | | | TemporaryFile class. - 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 ↵Russell Keith-Magee2013-06-201-0/+14
| | | | | | error if the 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