django/tests/modeltests
Jannis Leidel d95355b6db Fixed #16048 -- Use the base manager instead of the default manager to retrieve a related object of a GenericForeignKey similar to ForeignKeys. Thanks, adurdin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-05-22 15:21:03 +00:00
..
aggregation Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
basic Migrated basic doctests. Thanks to Preston Timmons for the patch. 2010-11-02 02:32:23 +00:00
choices Converted doctest to unittest. Patch by Alex Gaynor. 2010-09-10 20:54:01 +00:00
custom_columns Fixed #11509 -- Modified usage of "Web" to match our style guide in various documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch. 2010-10-09 08:12:50 +00:00
custom_managers Migrated the custom_managers tests. Thanks to Alex Gaynor. 2010-09-12 20:02:57 +00:00
custom_methods Migrated custom_methods doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:03 +00:00
custom_pk Fixed #11319 - Added lookup support for ForeignKey.to_field. Also reverted no-longer-needed model formsets workaround for lack of such support from r10756. Thanks Russell and Alex for review. 2011-01-25 03:14:28 +00:00
defer Migrated defer doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:20 +00:00
delete Fixed #7539, #13067 -- Added on_delete argument to ForeignKey to control cascade behavior. Also refactored deletion for efficiency and code clarity. Many thanks to Johannes Dollinger and Michael Glassford for extensive work on the patch, and to Alex Gaynor, Russell Keith-Magee, and Jacob Kaplan-Moss for review. 2010-11-09 16:46:42 +00:00
empty Migrated empty doctests. Thanks to Alex Gaynor. 2010-09-12 20:05:07 +00:00
expressions Migrated expressions doctests. Thanks to Alex Gaynor. 2010-09-12 20:05:17 +00:00
field_defaults Migrated i18n and field_defaults doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:39 +00:00
field_subclassing Updates to the test suite to allow for newly deprecated and removed features 2011-04-02 08:44:47 +00:00
files Move the Python 2.5 specific tests out of their own special files now that 2.5 is the default. Also add __futre__ import where necessary. 2011-03-28 05:58:43 +00:00
fixtures Fixed a bunch more tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 23:46:28 +00:00
fixtures_model_package Pass commit=False to loaddata in tests, which will keep the DB connection open. Closing the connection has the side-effect on some DBs (Postgres, MySQL/InnoDB) of rolling back the transaction that was in progress, causing these tests to fail. 2010-09-10 19:16:43 +00:00
force_insert_update Migrated the force_insert_update tests. Thanks to Alex Gaynor. 2010-09-12 20:04:04 +00:00
generic_relations Fixed #16048 -- Use the base manager instead of the default manager to retrieve a related object of a GenericForeignKey similar to ForeignKeys. Thanks, adurdin. 2011-05-22 15:21:03 +00:00
get_latest Fixed #11283 -- Made sure that latest() clears previously specified ordering in a QuerySet. Thanks to benmoran, punteney, mk and and Julien Phalip. 2011-04-22 12:02:07 +00:00
get_object_or_404 Migrated get_object_or_404 doctests. Thanks to Alex Gaynor. 2010-09-12 20:04:21 +00:00
get_or_create Fixed #12979 -- allowed using savepoints in TestCase (i.e. tests with transactions disabled), convert the GetOrCreate tests to use this. 2010-10-09 06:06:24 +00:00
invalid_models Fixed #7726 -- Added validation of max_digits and decimal_places options to DecimalField model field. Thanks theevilgeek for the report and elbarto for the patch. 2010-12-29 01:18:11 +00:00
lookup Fixed #15647 -- Changed in_bulk() not to type check its input, which now allows for passing any iterable. Thanks, calvinspealman 2011-03-26 17:50:10 +00:00
m2m_and_m2o Migrated m2m_intermediary doctests. Thanks to Alex Gaynor. 2010-09-12 20:04:48 +00:00
m2m_intermediary Migrated m2m_intermediary doctests. Thanks to Alex Gaynor. 2010-09-12 20:04:48 +00:00
m2m_multiple Migrated m2m_multiple doctests. Thanks to Alex Gaynor. 2010-09-12 20:04:57 +00:00
m2m_recursive Convert m2m_recursive tests to unittests. We have always been at war with doctests. 2010-10-09 16:26:48 +00:00
m2m_signals Converted m2m_signals from doctests to unittests. Thanks to Gregor Müllegger for the patch. We have always been at war with doctests. 2010-11-12 19:39:22 +00:00
m2m_through Migrated m2m_through doctests. Thanks to the anonymous contributor. 2010-11-02 02:00:16 +00:00
m2o_recursive Migrated m2o_recursive and m2o_recursive2 tests, merging them into a single package. Thanks to George Sakkis for the patches. 2010-10-12 00:14:49 +00:00
many_to_many Migrated many-to-many doctests. Thanks to George Sakkis for the patch. 2010-10-19 12:01:47 +00:00
many_to_one Migrated many-to-one doctests. Thanks to George Sakkis for the patch. 2010-10-19 04:58:59 +00:00
many_to_one_null Tweak to many_to_one_null doctest to avoid primary key assumptions (causing breakage on PostgreSQL). 2010-10-12 00:56:40 +00:00
model_forms Fixed #6953 -- Correctly sort ManyToMany fields in ModelForms. Thanks, dgouldin, mk and Alex. 2011-04-22 12:01:33 +00:00
model_formsets Fixed a number of tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 00:39:35 +00:00
model_inheritance Fixed #13206 -- call super().__init__() in Model.__init__ to allow mixins to do things there. 2011-01-26 03:42:31 +00:00
model_inheritance_same_model_name Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
model_package Fixed #14473 -- converted the model_package tests from doctests to unitests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. 2010-10-15 07:34:23 +00:00
mutually_referential Migrated the mutually_referential doctests. Thanks to George Sakkis for the patch. 2010-10-12 00:55:05 +00:00
one_to_one Migrated one_to_one doctests. Thanks to George Sakkis for the patch. (We have always been at war with doctests) 2010-10-12 00:56:19 +00:00
or_lookups Converted or_lookups tests from doctests to unittests. We have always been at war with doctests. Thanks to Paul Tax for the patch. 2010-10-16 17:00:11 +00:00
order_with_respect_to Fixed #13241. order_with_respect_to now works with ForeignKeys who refer to their model lazily (i.e. with a string). Thanks to Gabriel Grant for the patch. 2010-10-08 23:54:43 +00:00
ordering Converted ordering tests from doctests to unittests. We have always been at war with doctests. 2010-10-11 18:17:37 +00:00
pagination Fixed #14444 -- Convert the pagination doctests to unittests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. 2010-10-11 20:38:12 +00:00
properties Migrated properties doctests. Thanks to George Sakkis for the patch. 2010-10-12 00:55:31 +00:00
proxy_model_inheritance Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
proxy_models Fixed a bunch more tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 23:46:28 +00:00
raw_query Fixed #14733: no longer "validate" .raw() queries. 2011-03-14 19:49:53 +00:00
reserved_names Migrated reserved_names doctests. Thanks to Eric Florenzano. 2010-09-13 05:29:09 +00:00
reverse_lookup Migrated reverse_lookup doctests. Thanks to Eric Florenzano 2010-09-13 05:28:59 +00:00
save_delete_hooks Converted save_delete_hooks tests from doctests to unittests. We have always been at war with doctests. 2010-10-11 17:41:44 +00:00
select_for_update Replaced old-style with new-style decorator syntax. 2011-05-01 16:46:02 +00:00
select_related Fixed result ordering assumptions in the select_related tests. 2010-12-01 21:35:54 +00:00
serializers Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
signals Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
str Migrated str doctests. Thanks to Eric Florenzano. 2010-09-13 05:28:38 +00:00
test_client More migrations to use RedirectView instead of redirect_to 2011-04-02 08:45:38 +00:00
transactions Move the Python 2.5 specific tests out of their own special files now that 2.5 is the default. Also add __futre__ import where necessary. 2011-03-28 05:58:43 +00:00
unmanaged_models Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
update Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
user_commands Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
validation Fixes #15975 -- Test failure in model validation tests due to us now having https://www.djangoproject.com 2011-05-05 23:11:03 +00:00
validators Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
__init__.py MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. 2006-05-02 01:31:56 +00:00