summaryrefslogtreecommitdiff
path: root/tests/utils_tests
AgeCommit message (Collapse)Author
2017-10-12[2.0.x] Fixed #28679 -- Fixed urlencode()'s handling of bytes.François Freitag
Regression in fee42fd99ee470528858c2ccb3621135c30ec262. Thanks Claude Paroz, Jon Dufresne, and Tim Graham for the guidance. Backport of 41be85862d9067a809ccf3707d2a22dfef23d99a from master
2017-10-11[2.0.x] Split django.utils.http tests into separate test classes.François Freitag
Backport of 0e212a705e6b2e49a246b16286036c40ec2ac4f8 from master
2017-09-28[2.0.x] Fixed #28629 -- Made tree.Node instances hashable.Mariusz Felisiak
Regression in 508b5debfb16843a8443ebac82c1fb91f15da687 which added Node.__eq__(). Backport of fc6528b25ab1834be1a478b405bf8f7ec5cf860c from master
2017-09-21Added test for too large input to django.utils.http.base36_to_int().Mads Jensen
2017-09-02Fixed #28306 -- Completed test coverage for django.utils.lorem_ipsum.LBerrocal
Thanks Idan Melamed for the original patch.
2017-07-12Refs #28389 -- Added release note and test for pickling of LazyObject when ↵Sergey Fedoseev
wrapped object doesn't have __reduce__(). Forwardport of 30f334cc58e939c7d9bd8455c80bd066fbde9f2b from stable/1.11.x
2017-07-03Fixed #28076 -- Added support for PostgreSQL's interval format to ↵Matthew Schinckel
parse_duration().
2017-07-03Refs #27804 -- Used subTest() in dateparse tests.Matthew Schinckel
2017-06-29Refs #28280 -- Added more tests for utils.numberformat.format().Wil Tan
2017-06-20Fixed #28324 -- Made feedgenerators write feeds with deterministically ↵Georg Sauthoff
ordered attributes.
2017-06-08Fixed #28241 -- Allowed module_has_submodule()'s module_name arg to be a ↵Thomas Khyn
dotted path.
2017-05-27Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne
iter(dict) is equivalent to iter(dict.keys()).
2017-05-10Fixed #28142 -- Fixed is_safe_url() crash on invalid IPv6 URLs.UmanShahzad
2017-04-26Refs #20094 -- Removed obsolete tests/utils_tests/test_itercompat.pyTim Graham
The is_iterator() function was removed in 2456ffa42c33d63b54579eae0f5b9cf2a8cd3714.
2017-04-11Fixed #28064 -- Removed double-quoting of key names in MultiValueDictKeyError.petedmarsh
2017-04-04Fixed #27912, CVE-2017-7233 -- Fixed is_safe_url() with numeric URLs.Tim Graham
This is a security fix.
2017-04-04Updated tests after French translation updateClaude Paroz
2017-03-17Replaced type-specific assertions with assertEqual().Tim Graham
Python docs say, "it's usually not necessary to invoke these methods directly."
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-03-04Fixed #27900 -- Made escapejs escape backticks for use in ES6 template literals.Tim Graham
2017-02-24Fixed #27879 -- Fixed crash if enclosures aren't provided to ↵Pavlo Kapyshin
Atom1Feed.add_item(). Regression in 75cf9b5ac031feb8f94271c9906157c921a14520
2017-02-23Refs #11964 -- Made Q objects deconstructible.Ian Foote
2017-02-22Completed test coverage for django.utils.encoding.Tim Graham
2017-02-09Fixed #26005 -- Fixed some percent decoding cases in uri_to_iri().Chronial
2017-02-09Refs #23919 -- Removed default 'utf-8' argument for str.encode()/decode().Tim Graham
2017-02-07Converted usage of ugettext* functions to their gettext* aliasesClaude Paroz
Thanks Tim Graham for the review.
2017-02-03Removed an untested and broken branch in force_bytes() (refs #6353).Tim Graham
The new test crashed in the removed branch. It's unclear if the branch has value since c6a2bd9b962af1cdf46f964589e6023046cfa8ec didn't include tests.
2017-02-03Added a test for force_text()'s DjangoUnicodeDecodeError path.Tim Graham
2017-02-02Fixed #27803 -- Kept safe status of lazy safe strings in conditional_escapeClaude Paroz
2017-02-02Refs #27804 -- Used subTest() in tests.utils_tests.test_html.Tim Graham
2017-02-02Imported specific functions in tests.utils_tests.test_html.Tim Graham
2017-01-30Refs #27795 -- Prevented SafeText from losing safe status on str()Claude Paroz
This will allow to replace force_text() by str() in several places (as one of the features of force_text is to keep the safe status).
2017-01-30Reintroduced lazy import from commit 52138b1fd0Claude Paroz
2017-01-30Refs #23919 -- Removed usage of obsolete SafeBytes classClaude Paroz
The class will be removed as part of #27753. Thanks Tim Graham for the review.
2017-01-27Refs #23919 -- Removed an obsolete test for a Python 2 code path (refs #15662).Tim Graham
Fixed #21628 by removing the last usage of the imp module.
2017-01-26Refs #23919 -- Replaced usage of django.utils.http utilities with Python ↵Claude Paroz
equivalents Thanks Tim Graham for the review.
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-20Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage.Tim Graham
These functions do nothing on Python 3.
2017-01-20Refs #23919 -- Simplified assertRaisesRegex()'s that accounted for Python 2.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #24046 -- Removed mark_for_escaping() per deprecation timeline.Tim Graham
2017-01-17Refs #25847 -- Removed support for User.is_(anonymous|authenticated) as methods.Tim Graham
Per deprecation timeline.