summaryrefslogtreecommitdiff
path: root/tests/utils_tests
AgeCommit message (Collapse)Author
2013-10-13Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.Aymeric Augustin
Thanks jpic for the report and chmodas for working on a patch. Reverts 2ea80b94. Refs #19362. Conflicts: tests/utils_tests/test_encoding.py
2013-09-27[1.6.x] Fix #21185: Added tests for unescape_entities.Baptiste Mispelon
Also fixed a py3 incompatibility. Thanks to brutasse for the report. Backport of 3754f4ad410640382f9fe25073da03009cdc2ea3 from master.
2013-09-18[1.6.x] Fixed bad backport in last commit; refs #21118Tim Graham
2013-09-18[1.6.x] Fixed #21118 -- Isolated a test that uses the database.Tim Graham
Thanks rmboggs for the report. Backport of 4f40b97d97 from master
2013-09-18[1.6.x] Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.Tim Graham
Thanks margieroginski for the suggestion. Backport of 893198509e from master
2013-09-08[1.6.x] Further hardening. Refs #18766.Aymeric Augustin
Backport of c687bf0 from master.
2013-09-08[1.6.x] Hardened the test introduced in ded11aa6. Refs #18766.Aymeric Augustin
Inputs acceptable to time.mktime are platform-dependent. Backport of 1a1e1478 from master.
2013-09-08[1.6.x] Fixed #18766 -- Pointed to pytz when LocalTimezone fails.Aymeric Augustin
Thanks void for the report. Backport of ded11aa6 from master.
2013-09-03[1.6.x] Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
Conflicts: django/db/backends/oracle/base.py django/db/backends/sqlite3/base.py django/db/models/base.py Backport of 365c3e8b from master.
2013-07-28[1.6.x] Simplified smart_urlquote and added some basic tests.Florian Apolloner
Backport of b70c371fc1f18ea0c43b503122df3f311afc7105 from master.
2013-05-25Fixed #20296 -- Allowed SafeData and EscapeData to be lazyBaptiste Mispelon
2013-05-23Fixed #19237 (again) - Made strip_tags consistent between Python versionsClaude Paroz
2013-05-22Fixed #19237 -- Used HTML parser to strip tagsClaude Paroz
The regex method used until now for the strip_tags utility is fast, but subject to flaws and security issues. Consensus and good practice lead use to use a slower but safer method.
2013-05-21Fixed test failures from 09f865276554f35060ff939722ec4cefd578edf6.Florian Apolloner
2013-05-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
2013-05-21Fixed #20212 - __reduce__ should only be defined for Py3+.Daniel Lindsley
2013-05-18Fixed #20246 -- Added non-breaking spaces between values an unitsEmil Stenström
2013-05-10Fixed #17365, #17366, #18727 -- Switched to discovery test runner.Carl Meyer
Thanks to Preston Timmons for the bulk of the work on the patch, especially updating Django's own test suite to comply with the requirements of the new runner. Thanks also to Jannis Leidel and Mahdi Yusuf for earlier work on the patch and the discovery runner. Refs #11077, #17032, and #18670.
2013-04-26Fixed #20321 -- Added missing key name in MergeDict KeyError messageClaude Paroz
Thanks mark.harviston et gmail.com for the report.
2013-04-19Fix != operations on lazy objects.Alex Gaynor
2013-04-19Fixed #20276 -- Implemented __bool__ for MergeDictAnton Baklanov
MergeDict evaluates now to False if all contained dicts are empty. Thanks til for the report and the initial patch.
2013-04-12Modified utils_tests for unittest2 discovery.Preston Timmons
2013-04-01Relaxed time frame check in test_strip_tagsClaude Paroz
2013-04-01Imported unittest from django.utils in util_testsClaude Paroz
Without this, the 'new' assertion methods are not present with Python 2.6.
2013-04-01Added more tests for strip_tags utilityClaude Paroz
Refs #19237.
2013-03-31Fixed #20167 -- Preserve the traceback of `ImportError`s in `import_by_path`.Joe Friedl
Thanks @carljm for the review.
2013-03-22Fixed #20108 -- Fixed filepath_to_uri decoding errorClaude Paroz
This was a regression due to unicode_literals usage. Thanks Ivan Virabyan for the report and the initial patch.
2013-03-22Fixed #20094 - Be more careful when checking for IteratorMarc Tamlyn
Python 2.6 has some different behaviour when checking isinstance(foo, collections.Iterator).
2013-03-18Fixed #19456 -- Avoid infinite recursion when tracing LazyObject.__init__.Aymeric Augustin
Thanks blaze33 for the patch.
2013-03-18Fixed #18447 -- Made LazyObject unwrap on dict access.Aymeric Augustin
Thanks Roman Gladkov and Zbigniew Siciarz.
2013-03-06Merge pull request #882 from loic/testfixRamiro Morales
Fixed minor warnings in tests.
2013-03-06PEP8 cleanup of functional.pyPreston Holmes
2013-03-06Fixed #19543 -- implemented SimpleLazyObject.__repr__Preston Holmes
Thanks to Florian Hahn for the patch
2013-03-06Fixed minor warnings in tests.Loic Bistuer
2013-02-27Made dateformat tests reactivate original languageAnssi Kääriäinen
2013-02-26Renamed some tests and removed references to modeltests/regressiontests.Florian Apolloner