summaryrefslogtreecommitdiff
path: root/tests/utils_tests
AgeCommit message (Collapse)Author
2019-04-29Fixed #30323 -- Fixed detecting changes by autoreloader when using StatReloader.Tom Forbes
2019-04-26Fixed #30361 -- Increased the default timeout of watchman client to 5 ↵Jacob Green
seconds and made it customizable. Made the default timeout of watchman client customizable via DJANGO_WATCHMAN_TIMEOUT environment variable.
2019-04-25Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵Jon Dufresne
html.escape()/unescape().
2019-04-24Fixed #30366 -- Skipped StatReloaderTests on HFS+ filesystems.Martijn Jacobs
When on MacOS High Sierra or below (<=10.13) it could be that a HFS+ filesystem is used. HFS+ has a time resolution of only one second which can be too low for some of the tests.
2019-04-13Fixed #30363 -- Do not use exponential notation for small decimal numbers.Sjoerd Job Postmus
In 9cc6a60040b0f64f8ea066dd215176d4bd16621d a security patch was introduced to prevent allocating large segments of memory when a very large or very small decimal number was to be formatted. As a side-effect, there was a change in formatting of small decimal numbers even when the `decimal_pos` argument was provided, which meant that reasonable small decimal numbers (above 1e-199) would be formatted as `0.00`, while smaller decimal numbers (under 1e-200) would be formatted as `1e-200`.
2019-03-20Fixed #30264 -- Fixed crash of test_parsing_year_less_than_70() on 32-bit ↵Mariusz Felisiak
systems. Thanks Andreas Beckmann and Chris Lamb for the report.
2019-03-15Cleaned up exception message checking in some tests.Jon Dufresne
2019-02-27Fixed #30215 -- Fixed autoreloader crash for modules without __spec__.shiningfm
Regression in c8720e7696ca41f3262d5369365cc1bd72a216ca.
2019-02-25Refs #30179 -- Moved topological sort functions to django.utils.Matthias Kestenholz
2019-02-23Fixed #30141 -- Fixed parse_duration() for some negative durations.Seunghun Lee
2019-02-11Fixed spelling mistakes in comments and tests.Semen Zhydenko
2019-02-11Fixed CVE-2019-6975 -- Fixed memory exhaustion in utils.numberformat.format().Carlton Gibson
Thanks Sjoerd Job Postmus for the report and initial patch. Thanks Michael Manfre, Tim Graham, and Florian Apolloner for review.
2019-02-09Removed unneeded list() calls in sorted() argument.Sergey Fedoseev
2019-02-06Refs #27753 -- Favored SafeString over SafeText.Tim Graham
2019-02-06Refs #27753 -- Deprecated django.utils.encoding.force_text() and smart_text().Tim Graham
2019-02-06Refs #27753 -- Favored force/smart_str() over force/smart_text().Aymeric Augustin
2019-02-04Refs #27753 -- Deprecated django.utils.http urllib aliases.Tim Graham
2019-01-30Fixed #30116 -- Dropped support for Python 3.5.Tim Graham
2019-01-28Fixed #25624 -- Fixed autoreload crash with jinja2.ModuleLoader.Tom Forbes
2019-01-27Removed default mode='r' argument from calls to open().Jon Dufresne
2019-01-23Completed test coverage for utils.text._replace_entity().Hasan Ramezani
2019-01-19Completed test coverage for utils.text.Truncator.chars().Hasan Ramezani
2019-01-17Refs #28965 -- Removed utils.http.cookie_date() per deprecation timeline.Tim Graham
2019-01-16Fixed #20147 -- Added HttpRequest.headers.Santiago Basulto
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2019-01-02Used 4 space hanging indent for dictionaries.Tim Graham
Thanks Mariusz Felisiak for auditing.
2018-12-27Fixed #30024 -- Made urlencode() and Client raise TypeError when None is ↵Jon Dufresne
passed as data.
2018-11-27Switched TestCase to SimpleTestCase where possible in Django's tests.Tim Graham
2018-11-19Fixed #29478 -- Added support for mangled names to cached_property.Thomas Grainger
Co-Authored-By: Sergey Fedoseev <fedoseev.sergey@gmail.com>
2018-11-09Fixed #29920 -- Added a test for smart_urlquote()'s UnicodeError branch.Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)
2018-11-03Increased test coverage of django.utils.http.Hasan Ramezani
2018-10-17Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and ↵aspalding
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-10-17Refs #29838 -- Fixed make_hashable() for values that have lists or dicts ↵aspalding
nested in tuples. And for non-hashable values that are iterable, e.g. sets.
2018-10-17Moved make_hashable() to django.utils and added tests.aspalding
2018-10-09Completed FixedOffset test coverage.Hasan Ramezani
2018-09-28Refs #28909 -- Simplifed code using unpacking generalizations.Sergey Fedoseev
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-09-19Fixed #29772 -- Made LazyObject proxy __lt__() and __gt__().Javier Buzzi
2018-08-21Fixed #29654 -- Made text truncation an ellipsis character instead of three ↵Claude Paroz
dots. Thanks Sudhanshu Mishra for the initial patch and Tim Graham for the review.
2018-08-08Fixed #29643 -- Fixed crash when combining Q objects with __in lookups and ↵Mariusz Felisiak
lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
2018-08-07Refs #29244 -- Fixed django.utils.inspect.method_has_no_args() for bound ↵Josh Schneier
methods.
2018-08-07Renamed django.utils.inspect.func_has_no_args() to method_has_no_args().Josh Schneier
2018-08-02Refs #29600 -- Updated django.utils.datetime_safe now that Python 2 is ↵Tim Graham
unsupported.
2018-08-01Fixed CVE-2018-14574 -- Fixed open redirect possibility in CommonMiddleware.Andreas Hug
2018-07-20Fixed #29412 -- Stopped marking slugify() result as HTML safe.Claude Paroz
2018-07-19Fixed #29578 -- Made numberformat.format() honor forced l10n usage.Claude Paroz
Thanks Sassan Haradji for the report.
2018-07-09Fixed #29546 -- Deprecated django.utils.timezone.FixedOffset.Sergey Fedoseev
2018-07-09Fixed some assertTrue() that were intended to be assertEqual().Sergey Fedoseev
2018-07-09Made test for memoryview handling in force_bytes() more strict.Sergey Fedoseev
2018-06-29Fixed #29525 -- Allowed is_safe_url()'s allowed_hosts arg to be a string.Przemysław Suliga