summaryrefslogtreecommitdiff
path: root/tests/testapp
AgeCommit message (Collapse)Author
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-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-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
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-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-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-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-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-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-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-09-26Added unit test to confirm #558Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-25Fixed #556 -- ManyToManyField join tables no longer assume the primary keys ↵Adrian Holovaty
of both associated tables are integers. Also added unit tests to confirm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-20Added unit test to one_to_one model that confirms #527Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-02Added unit test that confirms #404Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26Tiny change to docstring in many_to_one_null model unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-26Removed 'this isn't yet supported' message from custom_pk unit test ↵Adrian Holovaty
docstring -- it IS supported git-svn-id: http://code.djangoproject.com/svn/django/trunk@557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-25Fixed #122 -- BIG, BACKWARDS-INCOMPATIBLE CHANGE. Changed model syntax to ↵Adrian Holovaty
use fieldname=FieldClass() syntax. See ModelSyntaxChangeInstructions for important information on how to change your models git-svn-id: http://code.djangoproject.com/svn/django/trunk@549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-19Added 'limit' and 'offset' unit tests, one of which fails in MySQL 3 (refs #350)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-15Added unit test that tests #323 -- currently fails for MySQL and passes for ↵Adrian Holovaty
PostgreSQL git-svn-id: http://code.djangoproject.com/svn/django/trunk@506 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-10Doctest now uses the ELLIPSIS option, which allows the one_to_one test to ↵Jacob Kaplan-Moss
pass under sqlite. This fixes #238. git-svn-id: http://code.djangoproject.com/svn/django/trunk@466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Added more tests to custom_pk unit-test modelAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Added custom_pk unit tests, which fail because of #81Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-10Fixed #154 -- Fixed constraint error when deleting an object with a ↵Adrian Holovaty
many-to-many field git-svn-id: http://code.djangoproject.com/svn/django/trunk@447 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Added some extra examples to many_to_many unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Added some extra examples to many_to_many unit testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-09Removed period from save_delete_hooks docstring -- it doesn't fit our styleAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08Companion checkin to [432]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-08Fixed #280 -- Added _pre_delete() and _post_delete() hooks. Also updated the ↵Adrian Holovaty
docs and added a unit testdjango/core/meta/__init__.py git-svn-id: http://code.djangoproject.com/svn/django/trunk@432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-04Fixed typo in one_to_one test docstring. Thanks, FrankAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Modified custom_methods test to use date() instead of datetime()Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@379 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Added framework for writing non-model-based tests, and added tests for cache ↵Jacob Kaplan-Moss
and templates from the old django/tests location (which has been removed). git-svn-id: http://code.djangoproject.com/svn/django/trunk@367 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Changed custom_methods model test/doc to add explanation of what ↵Adrian Holovaty
Article(*row) means, for Python beginners git-svn-id: http://code.djangoproject.com/svn/django/trunk@363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Fixed #239 and #107 -- Changed model init() to use Field.get_default() if ↵Adrian Holovaty
the value wasn't explicitly passed as a keyword argument. That means setting 'id=None' is no longer necessary, and you can leave off fields if you want them to have default values set. git-svn-id: http://code.djangoproject.com/svn/django/trunk@360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Fixed #214 -- Added get_values() and get_values_iterator() module-level ↵Adrian Holovaty
functions to DB API. Thanks, rmunn git-svn-id: http://code.djangoproject.com/svn/django/trunk@359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-08-01Small formatting improvement to one_to_one model testAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-07-31Added m2o_recursive and m2o_recursive2 model unit tests/examplesAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@356 bcc190cf-cafb-0310-a4f2-bffc1f526a37