summaryrefslogtreecommitdiff
path: root/tests/othertests
AgeCommit message (Collapse)Author
2006-08-27Refs #2333 - Modified runtests script to use new testing framework. Migrated ↵Russell Keith-Magee
existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-12Fixed #2528 -- Fixed 'time' template filter for midnight time value. Thanks, ↵Adrian Holovaty
django@dougma.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@3563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-28Added urlpatterns_reverse unit tests, which test the reverse lookup of URLsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-27Fixed #1650: the {% extends %} tag now can extend a Template object passed ↵Jacob Kaplan-Moss
into the context. Thanks, clelland@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-22Fixed #2397 -- fixed markdown test to be a bit more lenient in what counts as aMalcolm Tredinnick
pass due to whitespace differences between markdown versions. Thanks to shields@msrl.com for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-15Fixed the timeuntil and timesince filter tests to not fail if the system clockMalcolm Tredinnick
ticks over during the tests. Also fixed the template tests to be able to run in standalone mode again. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixes #2202 -- Added ability to customize output of pluralize filter to ↵Russell Keith-Magee
handle irregular cases (walrus/walruses, cherry/cherries). Thanks to gid for the suggestion and the initial patch git-svn-id: http://code.djangoproject.com/svn/django/trunk@3272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-07-04Fixes #1338, Refs #1400, #2237 -- Modified variable resolution to allow ↵Russell Keith-Magee
template 'if' statements to work if TEMPLATE_STRING_IF_INVALID is set. Modified unit tests to force the use of this variable, so that returning '' isn't confused with an actual failure. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed the "timeuntil" and "timesince" tests so that they don't fail on aMalcolm Tredinnick
machine under heavy load. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2163 -- Corrected typo when handling datetimes with timezones in the ↵Malcolm Tredinnick
timesince filter. Thanks, Alex Dedul. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-21Fixed #2053 -- added an optional comparison argument to the "timesince" filter.Malcolm Tredinnick
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-18Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2109 -- Convert old-style classes to new-style classes throughout ↵Adrian Holovaty
Django. Thanks, Nicola Larosa git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Added django.template.Token.split_contents() and used it to add support for ↵Adrian Holovaty
strings with spaces in {% ifchanged %} git-svn-id: http://code.djangoproject.com/svn/django/trunk@3112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-06-08Fixed #2026 -- Added support for 'and' in template 'if' tags, added dozens ↵Adrian Holovaty
of unit tests and updated docs. Thanks, ckknight git-svn-id: http://code.djangoproject.com/svn/django/trunk@3108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-16Fixed #1321 -- Made DJANGO_SETTINGS_MODULE optional. You can now call ↵Adrian Holovaty
django.conf.settings.configure() to set settings manually if you don't have a settings module. Thanks, Malcolm Tredinnick, Luke Plant, Fredrik Lundh git-svn-id: http://code.djangoproject.com/svn/django/trunk@2927 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-05-02MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty
backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-13Fixed #1632 -- Fixed typo in markup unit tests. Thanks, pbAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-04-12Fixed #1626 -- Fixed a bunch of typos in comments and docs. Thanks, DexterAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Removed a datetime test in tests/defaultfilters -- it was failing because ↵Adrian Holovaty
it's hard to test datetime-related stuff git-svn-id: http://code.djangoproject.com/svn/django/trunk@2389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23Fixed #1385 -- Allowed timesince filter to accept datetime.date objects. ↵Adrian Holovaty
Thanks, Matt git-svn-id: http://code.djangoproject.com/svn/django/trunk@2375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17Fixed spaceless template-tag tests in trunk (from magic-removal [2030])Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2036 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1067 and #276 -- Added a {% spaceless %} tag, available in all templatesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15Fixed #1176 -- Changed {% comment %} template tag not to generate a ↵Adrian Holovaty
nodelist, so it's now possible to comment-out broken template tags. Thanks, Kieran Holland git-svn-id: http://code.djangoproject.com/svn/django/trunk@1964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-04Changed repr for MultiValueDictAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-01Fixed httpwrappers unit tests to reflect MultiValueDict repr() changeAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-01Fixed #1145 -- Added unit tests for default template filters and fixed two ↵Adrian Holovaty
bugs in filters. Thanks, Luke Plant git-svn-id: http://code.djangoproject.com/svn/django/trunk@1811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-16Changed resolve_variable to resolve integers and floats as integers and ↵Adrian Holovaty
floats. Added ifequal unit tests. Refs #959 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-09Moved custom unit-test templatetag library into the unit test module itself, ↵Adrian Holovaty
to fix errors when running the test module directly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Fixed #736 -- Changed behavior of QueryDict items() to be more consistent, ↵Adrian Holovaty
fixed mutability holes, gave MultiValueDict many more dictionary methods and added unit tests. Thanks, Kieran Holland. This is slightly backwards-incompatible if you happened to rely on the behavior of QueryDict.items(), which is highly unlikely. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-26Fixed #911 -- Made template system scoped to the parser instead of the ↵Adrian Holovaty
template module. Also changed the way tags/filters are registered and added support for multiple arguments to {% load %} tag. Thanks, rjwittams. This is a backwards-incompatible change for people who've created custom template tags or filters. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-25Negligible spacing change in tests/othertests/templates.pyAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-23Fixed #603 -- Added template debugging errors to pretty error-page output, ↵Adrian Holovaty
if TEMPLATE_DEBUG setting is True. Also refactored FilterParser for a significant speed increase and changed the template_loader interface so that it returns information about the loader. Taken from new-admin. Thanks rjwittams and crew git-svn-id: http://code.djangoproject.com/svn/django/trunk@1379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-22Fixed #598 -- Added {% include %} template tag. Added docs and unit tests. ↵Adrian Holovaty
Thanks, rjwittams git-svn-id: http://code.djangoproject.com/svn/django/trunk@1349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-17fixed two failing i18n tests - they only failed when using ./runtests, now ↵Georg Bauer
they work both ways. And template tests give tracebacks when they fail. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09Fixed dateformat unit test that was failing -- the test was incorrect.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09Changed dateformat unit tests so that they use the en-us language. They were ↵Adrian Holovaty
failing because they depended on the current user's LANGUAGE_CODE setting git-svn-id: http://code.djangoproject.com/svn/django/trunk@1145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-04Merged i18n branch into the trunk! Fixes #65, and perhaps some others. NB: ↵Jacob Kaplan-Moss
this means that the i18n branch is now obsolete and will be made read-only. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-25Fixed #687 -- Fixed bug in floatformat template filter and added unit tests. ↵Adrian Holovaty
Thanks, Sune git-svn-id: http://code.djangoproject.com/svn/django/trunk@1007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-22Fixed #479 -- Implemented time-zone formats in dateformat. Thanks, SuneAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Changed template unit test runner to use new template-loader framework from ↵Adrian Holovaty
[870] git-svn-id: http://code.djangoproject.com/svn/django/trunk@871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-14Fixed #626 -- Moved template modules to django.core.template package. ↵Adrian Holovaty
django.core.template_loader is deprecated, in favor of django.core.template.loader. git-svn-id: http://code.djangoproject.com/svn/django/trunk@867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29Fixed #295 - added {{{forloop.revcounter}}} and {{{forloop.revcounter0}}} ↵Jacob Kaplan-Moss
variables to for loops. Also updated the docs and added unit tests to verify correct behavior. Thanks, Clint. git-svn-id: http://code.djangoproject.com/svn/django/trunk@736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29Fixed #501 -- Fixed block.super in multi-level templates, and added unit ↵Adrian Holovaty
tests to confirm. Thanks for the patch, django@kieranholland.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-11Fixed #486 -- Fixed bug in template filter parsing in edge cases, and added ↵Adrian Holovaty
unit tests. Thanks, Simon git-svn-id: http://code.djangoproject.com/svn/django/trunk@634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-01Fixed #365 -- Changed template.resolve_variable to resolve hard-coded ↵Adrian Holovaty
strings. Thanks, davidschein git-svn-id: http://code.djangoproject.com/svn/django/trunk@587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-29Fixed #256 and #334 -- Added {% ifequal %} template tag. Also, {% ifequal %} ↵Adrian Holovaty
and {% ifnotequal %} now both accept an optional {% else %} clause. Unit tests included. git-svn-id: http://code.djangoproject.com/svn/django/trunk@574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed timestamp and time typecasting to preserve microseconds. Added unit ↵Adrian Holovaty
tests to test this behavior, and added a db_typecast unit test module. Refs #306. git-svn-id: http://code.djangoproject.com/svn/django/trunk@487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-11Changed markup tests to not fail if required modules are not installedJacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #241 -- added django.contrib.markup app with markup templatetags for ↵Jacob Kaplan-Moss
Textile, ReST and Markdown git-svn-id: http://code.djangoproject.com/svn/django/trunk@467 bcc190cf-cafb-0310-a4f2-bffc1f526a37