summaryrefslogtreecommitdiff
path: root/tests/utils_tests
AgeCommit message (Collapse)Author
2013-11-24Fixed #21505 -- Added unit test for django.utils.text.get_valid_filename.Vajrasky Kok
2013-11-11Fixed #9523 -- Restart runserver after compiling apps translationsBouke Haarsma
Django also uses locales provided by apps, which also might change. Also when i18n is disabled, there is no need for watching translation files.
2013-11-03Fixed all E226 violationsAlex Gaynor
2013-11-02Fixing E302 ErrorsJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-11-02Fixed #21302 -- Fixed unused imports and import *.Tim Graham
2013-11-02Fixed #9523 -- Restart runserver after translation MO files changeBouke Haarsma
Thanks to Krzysztof Kulewski for the initial patch.
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-21Fixed #21288 -- Fixed E126 pep8 warningsAlasdair Nicol
2013-10-19Removed unused local variables in tests.Tim Graham
2013-10-18Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol
2013-10-17Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma
Thanks Aymeric Augustin for the suggestion.
2013-10-15Merge pull request #1744 from unaizalakain/ticket_7261Alex Gaynor
Fixed #7261 -- support for __html__ for library interoperability
2013-10-15Fixed #7261 -- support for __html__ for library interoperabilityUnai Zalakain
The idea is that if an object implements __html__ which returns a string this is used as HTML representation (eg: on escaping). If the object is a str or unicode subclass and returns itself the object is a safe string type. This is an updated patch based on jbalogh and ivank patches.
2013-10-14Fixed #21266 -- Fixed E201,E202 pep8 warnings.Larry O'Neill
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.
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-10-08Fixed #20568 -- truncatewords_html no longer splits words containing HTML ↵Jaap Roes
entities. Thanks yann0 at hotmail.com for the report.
2013-10-05Fixed #21161 -- Timezone-related tests on Windows.Aymeric Augustin
Thanks Xelnor for the patch.
2013-09-27Fix #21185: Added tests for unescape_entities.Baptiste Mispelon
Also fixed a py3 incompatibility. Thanks to brutasse for the report.
2013-09-18Fixed #21118 -- Isolated a test that uses the database.Tim Graham
Thanks rmboggs for the report.
2013-09-18Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.Tim Graham
Thanks margieroginski for the suggestion.
2013-09-13Fixed #21060 -- Refactored admin's autodiscover method to make it reusable.Juan Catalano
We want to be able to use it for instance for discovering `tasks.py` modules inside the INSTALLED_APPS. This commit therefore moves the logic to `autodiscover_modules` method in django.utils.module_loading.
2013-09-10Fixed test that fails when pytz is installed.Aymeric Augustin
pytz' localize() method is the bane of my life.
2013-09-09Refactored code and tests that relied on django.utils.tzinfo.Aymeric Augustin
Refs #17262.
2013-09-09Fixed #17262 -- Refactored tzinfo implementations.Aymeric Augustin
This commit deprecates django.utils.tzinfo in favor of the more recent django.utils.timezone which was introduced when Django gained support for time zones.
2013-09-08Further hardening. Refs #18766.Aymeric Augustin
2013-09-08Hardened the test introduced in ded11aa6. Refs #18766.Aymeric Augustin
Inputs acceptable to time.mktime are platform-dependent.
2013-09-08Fixed #18766 -- Pointed to pytz when LocalTimezone fails.Aymeric Augustin
Thanks void for the report.
2013-09-06Fixed #20812 -- Error out if __unicode__/__str__ doesn't return a text type.Florian Apolloner
2013-09-06Fixed #18719 -- Made force_bytes more consistent with force_text.Aymeric Augustin
2013-09-03Silenced deprecation warnings in SortedDict tests; refs [07876cf02b]Tim Graham
2013-09-02Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
2013-08-26Fixed #20693 -- Add timezone support to built-in time filter.Warren Smith
Modified django.utils.dateformat module, moving __init__() method and timezone-related format methods from DateFormat class to TimeFormat base class. Modified timezone-related format methods to return an empty string when timezone is inappropriate for input value.
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-15Regression test and patch for ticket #20924.Nick Bruun
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-07-29Deprecated django.utils.importlibClaude Paroz
This was a shim for pre-Python 2.7 support.
2013-07-28Simplified smart_urlquote and added some basic tests.Florian Apolloner
2013-07-02Merge branch 'master' into schema-alterationAndrew Godwin
2013-07-01Fixed a few more imports of django.utils.unittest.Aymeric Augustin
One import per line please! Refs #20680.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-06-28Removed insert(), value_for_insert() SortedDict methods deprecated in Django ↵Ramiro Morales
1.5.
2013-06-07Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/fields/related.py
2013-05-29Add test for new __ne__ method on Promise.Andrew Godwin
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