| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2021-04-06 | [3.2.x] Fixed CVE-2021-28658 -- Fixed potential directory-traversal via ↵ | Mariusz Felisiak | |
| uploaded files. Thanks Claude Paroz for the initial patch. Thanks Dennis Brinkrolf for the report. Backport of d4d800ca1addc4141e03c5440a849bb64d1582cd from main. | |||
| 2020-09-30 | Fixed #30422 -- Made TemporaryFileUploadHandler handle interrupted uploads. | aryan | |
| This patch allows upload handlers to handle interrupted uploads. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-09-30 | Refs #30422 -- Added test for removing temporary files in MultiPartParser ↵ | aryan | |
| when StopUpload is raised. | |||
| 2020-06-11 | Fixed #28132 -- Made MultiPartParser ignore filenames with trailing slash. | Michael Brown | |
| 2020-02-28 | Fixed #31293 -- Allowed MultiPartParser to handle double-quoted encoded headers. | 007 | |
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2019-03-15 | Cleaned up exception message checking in some tests. | Jon Dufresne | |
| 2019-01-31 | Fixed #30147 -- Simplified directory creation with os.makedirs(..., ↵ | Jon Dufresne | |
| exist_ok=True). | |||
| 2019-01-28 | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | |
| Used more specific errors (e.g. FileExistsError) as appropriate. | |||
| 2018-06-12 | Added tests for incorrect content type and size in MultiPartParser. | Mads Jensen | |
| 2018-02-07 | Refs #27795 -- Removed force_bytes/text() usage in tests. | Tim Graham | |
| 2017-02-08 | Used JsonResponse and response.json in file_uploads tests. | Tim Graham | |
| 2017-01-26 | Refs #23919 -- Replaced tempfile.mkdtemp() with TemporaryDirectory() context ↵ | Chillar Anand | |
| manager. | |||
| 2017-01-26 | Refs #23919 -- Replaced usage of django.utils.http utilities with Python ↵ | Claude Paroz | |
| equivalents Thanks Tim Graham for the review. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-25 | Refs #23919 -- Replaced errno checking with PEP 3151 exceptions. | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.PY2/PY3 usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-06-28 | Replaced use of TestCase.fail() with assertRaises(). | Tim Graham | |
| Also removed try/except/fail antipattern that hides exceptions. | |||
| 2016-05-17 | Fixed #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-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-03-07 | Fixed #26325 -- Made MultiPartParser ignore filenames that normalize to an ↵ | John-Mark Bell | |
| empty string. | |||
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2016-01-23 | Fixed typos in test comments. | Mingun Pak | |
| 2015-09-12 | Fixed #23395 -- Limited line lengths to 119 characters. | Dražen Odobašić | |
| 2015-07-20 | Replaced six.BytesIO with io.BytesIO | Tim Graham | |
| 2015-05-25 | Refs #24652 -- Fixed a test failure in file_uploads tests on Windows. | Simon Charette | |
| Thanks to Tim Graham for the report. | |||
| 2015-05-20 | Refs #24652 -- Used SimpleTestCase where appropriate. | Simon Charette | |
| 2015-02-23 | Normalized usage of the tempfile module. | Aymeric Augustin | |
| Specifically stopped using the dir argument. | |||
| 2015-02-23 | Guaranteed 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-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
| 2015-02-03 | Fixed #24149 -- Normalized tuple settings to lists. | darkryder | |
| 2015-01-27 | Fixed #24209 -- Prevented crash when parsing malformed RFC 2231 headers | Raul Cumplido | |
| Thanks Tom Christie for the report and review. | |||
| 2015-01-20 | Fixed typos in code comments. | Adam Taylor | |
| 2015-01-07 | Avoided a deprecated alias on Python 3 in file_uploads test. | Tim Graham | |
| 2014-12-04 | Fixed #23911 -- Added support for buffer file uploads in the test client | Thomas Tanner | |
| 2014-12-03 | Removed redundant numbered parameters from str.format(). | Berker Peksag | |
| Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}". | |||
| 2014-11-03 | Fixed #21281 -- Made override_settings act at class level when used as a ↵ | Thomas Chaumeny | |
| TestCase decorator. | |||
| 2014-11-03 | Fixed #23620 -- Used more specific assertions in the Django test suite. | Berker Peksag | |
| 2014-09-13 | Fixed #23397 -- Stripped whitespace from base64 during chunking | Jason Hobbs | |
| This insures the actual base64 content has a length a multiple of 4. Also added a test case for the failure. | |||
| 2014-08-14 | Fixed #22971 -- Properly parsed RFC 2388 encoded headers | Claude Paroz | |
| Thanks homm for the report, Cea Stapleton for patch improvements and Ian Cordasco, Christian Schmitt and Tim Graham for the review. | |||
| 2014-06-23 | Created import-time test temp dirs in known location | Claude Paroz | |
| Refs #17215. In the same spirit as 5de31cb8cb. | |||
| 2014-06-11 | Fixed #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-26 | Fixed a ResourceWarning that wasn't properly fixed by the previous commit. | Loic Bistuer | |
| Also removed unused import in runtests.py. | |||
| 2014-05-26 | Fixed a few ResourceWarning in the test suite. Refs #22680. | Loic Bistuer | |
| 2014-04-26 | Fix many many typos in comments throughout the codebase | Alex Gaynor | |
| 2014-04-06 | Fixed #21977 -- Deprecated SimpleTestCase.urls | Anubhav Joshi | |
| 2014-01-14 | Fixed #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. | |||
