summaryrefslogtreecommitdiff
path: root/django/contrib/humanize/tests.py
AgeCommit message (Collapse)Author
2015-02-11Moved contrib.humanize tests out of contrib.Tim Graham
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-09-10Corrected indentation in a contrib.humanize test; refs #23340.Tim Graham
Thanks Zach Borboa for the report.
2014-09-06Additional edits for refs #23340; thanks Loic.Tim Graham
2014-09-06Fixed #23340 -- Corrected naturaltime docs to match behavior.Collin Anderson
Thanks zachborboa for the report and blackguest for the patch.
2014-02-09Removed unused import in humanize tests.Tim Graham
2014-02-09Fixed #21992: Skipped test when pytz is missing.Adam Avramov
The test fails on Windows when pytz is not installed.
2014-01-27Removed superfluous uses of TransRealMixin.Aymeric Augustin
The translation.override context manager cleans up after itself. As a consequence this mixin isn't needed any more in many cases.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-07Renamed first argument of class method to clsmaurycyp
2013-10-22Fixed #21307 -- Moved TransRealMixin to django.test.utils.Ramiro Morales
2013-09-22Partial revert of 165f44aa.Aymeric Augustin
That commit didn't always improve readability. See discussion on django-developers for details.
2013-09-09Refactored code and tests that relied on django.utils.tzinfo.Aymeric Augustin
Refs #17262.
2013-09-06fixes #19988, allow html in ordinal for humanizeGarry Polley
2013-08-16Combine consecutive with statementsClaude Paroz
Python 2.7 allows to combine several 'with' instructions.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-06Fixed #20502 (again) -- More i18n cache flush in testsClaude Paroz
Thanks Timo Graham for noticing the failures.
2013-05-18Fixed #20246 -- Added non-breaking spaces between values an unitsEmil Stenström
2013-03-30Fixed #20059 -- Updated humanize tests to force 'en' language setting.matiasb
2013-03-16Fix 20061: remove out of date comment.Baptiste Mispelon
2013-02-23Fixed #19282 -- Restored ability to pass Decimals to intcomma filterHernan Lozano
2012-10-28Fixed a typo in aff9b2f.Aymeric Augustin
Thanks void.
2012-10-28Fixed #19203 -- Added isolation to a humanize testAymeric Augustin
Thanks lrekucki for the report.
2012-07-19Fixed #18504 -- Computed |naturalday in local time.Aymeric Augustin
2012-07-19Fixed #18608 -- Reduced monkey-patching in tests.Aymeric Augustin
Thanks Claude Paroz for the patch.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-05-19Marked bytestrings with b prefix. Refs #18269Claude Paroz
This is a preparation for unicode literals general usage in Django (Python 3 compatibility).
2012-03-30Removed with_statement imports, useless in Python >= 2.6. Refs #17965. ↵Claude Paroz
Thanks jonash for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-24Fixed #17414 -- Prevented numberformat from trying to group digits when the ↵Aymeric Augustin
number of digits per group is zero. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-22Fixed the humanize tests to work properly with a pure-python datetime module ↵Alex Gaynor
(platforms such as PyPy) git-svn-id: http://code.djangoproject.com/svn/django/trunk@17144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-26Avoid spurious failures in naturaltime tests.Carl Meyer
Previous fix didn't cover timesince module, which naturaltime delegates to under certain conditions. Extended mock of datetime to timesince module, and switched to a fixed datetime rather than now() for testing, for more reproducible tests (failures in mock will fail fast, rather than sporadically). git-svn-id: http://code.djangoproject.com/svn/django/trunk@17038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-24Fixed #17086 -- Removed pollution of global template-builtins from markup ↵Carl Meyer
and humanize tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-22Mocked datetime in the naturaltime tests to avoid sporadic test failure.Carl Meyer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-23Fixed #16878 -- Improved intword filter to support numbers up to decillion ↵Jannis Leidel
and googol. Thanks to crodjer for the initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16897 bcc190cf-cafb-0310-a4f2-bffc1f526a37