summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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-03-01Added model unit tests for get_DATEFIELD_list(). Refs #1423Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2449 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25Changed get_object() not to use 'ordering' parameter from the model. Thanks, ↵Adrian Holovaty
Ned Batchelder. Also updated some unit tests to show correct DoesNotExist output git-svn-id: http://code.djangoproject.com/svn/django/trunk@2392 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-02-18Added usage to unit-test OptionParserAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2336 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-17Improved doctests to normalize long integers in compared outputAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2034 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-06Fixed #1181 -- get_in_bulk no longer fails on empty input. Also added unit ↵Adrian Holovaty
tests. Thanks, akaihola git-svn-id: http://code.djangoproject.com/svn/django/trunk@1834 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-12-05Added two more unit tests for #982 (which still pass under Python 2.4). Refs ↵Adrian Holovaty
#982 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-05Added unit tests for #982, but they're passing for me on Python 2.4. Maybe ↵Adrian Holovaty
the problem is Python 2.3? Refs #982 git-svn-id: http://code.djangoproject.com/svn/django/trunk@1545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #964 -- Added helpful error message if there's a problem in running ↵Adrian Holovaty
the unit tests. Thanks, paolo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Added unit tests to confirm #452. Refs #452.Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed bug in basic.py model unit tests caused by [1511] -- the special-case ↵Adrian Holovaty
MySQL thing needs to be at the end of the tests git-svn-id: http://code.djangoproject.com/svn/django/trunk@1514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-01Fixed #757: manually set AutoField values are now respected; also added unit ↵Jacob Kaplan-Moss
test to verify the correct behavior. Thanks, cygnus. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-30Fixed #251 -- Added OR support to queries, via the new 'complex' DB API ↵Adrian Holovaty
keyword argument. Updated docs and added unit tests. Also removed old, undocumented '_or' parameter. Thanks, Hugo. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1508 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-21Added unit tests to verify OneToOne deletion worksAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-21Added unit tests to verify #800. Refs #800Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Added an EmailField to the many_to_one API testsAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-20Changed one_to_one unit test to use %r instead of %s in repr methodAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1312 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-14Fixed #121 -- Django now quotes all names in SQL queries. Also added unit ↵Adrian Holovaty
tests to confirm. Thanks, Robin Munn and Sune. git-svn-id: http://code.djangoproject.com/svn/django/trunk@1224 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10Fixed #724 -- Ensured get_next_by_FOO() and get_previous_by_FOO() methods ↵Adrian Holovaty
don't skip or duplicate any records in the case of duplicate values. Thanks for reporting the bug, mattycakes@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@1155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-10Added unit tests to disprove #724Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-11-09Added unit tests to confirm #683 -- a new custom_columns model exampleAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1147 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-11-01Added model unit tests for year, month and day lookup. Refs #659Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1033 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-22Fixed #681 -- get_in_bulk no longer assumes PK fields are called id. Also ↵Adrian Holovaty
added unit tests to confirm. Thanks, Jeremy Dunck git-svn-id: http://code.djangoproject.com/svn/django/trunk@991 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-10-08Fixed bug in tests/runtests.py -- some versions of MySQLdb require an ↵Adrian Holovaty
argument to connection.autocommit() git-svn-id: http://code.djangoproject.com/svn/django/trunk@805 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