summaryrefslogtreecommitdiff
path: root/tests/file_uploads
AgeCommit message (Collapse)Author
2016-06-28Replaced use of TestCase.fail() with assertRaises().Tim Graham
Also removed try/except/fail antipattern that hides exceptions.
2016-05-17Fixed #26601 -- Improved middleware per DEP 0005.Florian Apolloner
Thanks Tim Graham for polishing the patch, updating the tests, and writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-04-08Fixed E128 flake8 warnings in tests/.Tim Graham
2016-03-07Fixed #26325 -- Made MultiPartParser ignore filenames that normalize to an ↵John-Mark Bell
empty string.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-23Fixed typos in test comments.Mingun Pak
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-07-20Replaced six.BytesIO with io.BytesIOTim Graham
2015-07-06Fixed some unclosed objects in testsAndriy Sokolovskiy
2015-05-25Refs #24652 -- Fixed a test failure in file_uploads tests on Windows.Simon Charette
Thanks to Tim Graham for the report.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-02-23Normalized usage of the tempfile module.Aymeric Augustin
Specifically stopped using the dir argument.
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
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.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24149 -- Normalized tuple settings to lists.darkryder
2015-01-27Fixed #24209 -- Prevented crash when parsing malformed RFC 2231 headersRaul Cumplido
Thanks Tom Christie for the report and review.
2015-01-20Fixed typos in code comments.Adam Taylor
2015-01-07Avoided a deprecated alias on Python 3 in file_uploads test.Tim Graham
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-04Fixed #23911 -- Added support for buffer file uploads in the test clientThomas Tanner
2014-12-03Removed redundant numbered parameters from str.format().Berker Peksag
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
2014-11-03Fixed #21281 -- Made override_settings act at class level when used as a ↵Thomas Chaumeny
TestCase decorator.
2014-11-03Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag
2014-09-13Fixed #23397 -- Stripped whitespace from base64 during chunkingJason Hobbs
This insures the actual base64 content has a length a multiple of 4. Also added a test case for the failure.
2014-08-14Fixed #22971 -- Properly parsed RFC 2388 encoded headersClaude Paroz
Thanks homm for the report, Cea Stapleton for patch improvements and Ian Cordasco, Christian Schmitt and Tim Graham for the review.
2014-06-23Created import-time test temp dirs in known locationClaude Paroz
Refs #17215. In the same spirit as 5de31cb8cb.
2014-06-11Fixed #22680 -- I/O operation on closed file.Florian Apolloner
This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request.
2014-05-26Fixed a ResourceWarning that wasn't properly fixed by the previous commit.Loic Bistuer
Also removed unused import in runtests.py.
2014-05-26Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer
2014-04-26Fix many many typos in comments throughout the codebaseAlex Gaynor
2014-04-06Fixed #21977 -- Deprecated SimpleTestCase.urlsAnubhav Joshi
2014-04-03Fixed #22218 -- Deprecated django.conf.urls.patterns.Tim Graham
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-01-14Fixed #21774 -- Isolate all test urls from eachother.Marc Tamlyn
This (nearly) completes the work to isolate all the test modules from each other. This is now more important as importing models from another module will case PendingDeprecationWarnings if those modules are not in INSTALLED_APPS. The only remaining obvious dependencies are: - d.c.auth depends on d.c.admin (because of the is_admin flag to some views), but this is not so important and d.c.admin is in always_installed_apps - test_client_regress depends on test_client. Eventually these should become a single module, as the split serves no useful purpose.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed all E261 warningscoagulant
2013-11-02Fixed flake8 E241Boryslav Larin
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-09-10Fixed #21033 -- Fixed uploaded filenames not always being truncated to 255 ↵homm
characters
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-11Fixed #13721 -- Added UploadedFile.content_type_extra.Benjamin Kagia
Thanks Waldemar Kornewald and mvschaik for work on the patch.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner