django/tests/modeltests
Chris Beaven 051bf1cf12 Fixed 14513 -- check fields with underscores for validity when ordering. Bonus points to Klaas van Schelven.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21 21:17:07 +00:00
..
aggregation Fixed #13895 -- Refactored aggregation_regress doctests. Thanks to Alex Gaynor for the patch. 2010-08-20 14:28:42 +00:00
basic Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +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 #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
defer Migrated defer doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:20 +00:00
delete Migrated delete doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:28 +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 Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code. 2010-10-11 12:20:07 +00:00
files Migrate the files doctests. Thanks to Alex Gaynor. 2010-09-12 20:03:55 +00:00
fixtures Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +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 Corrected a suite of test failures when running under postgres. 2010-10-17 01:49:36 +00:00
get_latest Migrate get_latest doctests. Thanks to Alex Gaynor. 2010-09-12 20:04:12 +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 14513 -- check fields with underscores for validity when ordering. Bonus points to Klaas van Schelven. 2010-10-21 21:17:07 +00:00
lookup Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +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 Fixed #13087 -- Modified m2m signals to provide greater flexibility over exactly when notifications are delivered. 2010-03-30 11:54:56 +00:00
m2m_through Fixed #10109 -- Removed the use of raw SQL in many-to-many fields by introducing an autogenerated through model. 2009-11-03 14:02:49 +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 #14102 -- Ensure that fields that have been excluded from a form aren't included in the unique_for_* checks, either. Thanks to Travis Cline for the report and fix. 2010-08-17 07:07:28 +00:00
model_formsets Fixed #13811 -- Changed unique validation in model formsets to ignore None values, not just omit them 2010-10-13 00:30:02 +00:00
model_inheritance Fixed #12152. DoesNotExist and MultipleObjectsReturned now subclass their parent model's exceptions. Thanks, mattmcc and Alex Gaynor. 2010-02-24 14:32:11 +00:00
model_inheritance_same_model_name Fixed #9638 - Added %(app_label)s to the related_name format string for abstract models. 2010-01-09 20:03:52 +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 Fixed #13657: Moved global declaration before assignments to avoid a syntax warning. Thanks Alex. 2010-06-07 03:01:06 +00:00
proxy_models Migrated proxy_models doctests. Thanks to Eric Florenzano. 2010-09-13 05:29:21 +00:00
raw_query Fixed #12429 -- Ensure that raw queries call resolve_columns if the backend defines it. This ensures (as much as possible) that the model values returned by a raw query match that in normal queries. Thanks to Ian Kelly for the report. 2010-04-01 16:48:16 +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_related Fixed #5416 -- Added TestCase.assertNumQueries, which tests that a given function executes the correct number of queries. 2010-10-12 03:33:19 +00:00
serializers Fixed #14436 -- Escalated 1.2 PendingDeprecationWarnings to DeprecationWarnings, and removed 1.1 deprecated code. 2010-10-11 12:20:07 +00:00
signals Converted signals tests from doctests to unittests. We have always been at war with doctests. 2010-10-10 18:23:39 +00:00
str Migrated str doctests. Thanks to Eric Florenzano. 2010-09-13 05:28:38 +00:00
test_client Fixed #9002 -- Added a RequestFactory. This allows you to create request instances so you can unit test views as standalone functions. Thanks to Simon Willison for the suggestion and snippet on which this patch was originally based. 2010-10-12 23:37:47 +00:00
transactions Fixed #10771 -- added support for using the transaction management functions as context managers in Python 2.5 and above. Thanks to Jacob for help with the docs. 2010-10-19 19:38:15 +00:00
unmanaged_models Migrated unmanaged_models doctests. Thanks to Eric Florenzano. 2010-09-13 05:28:18 +00:00
update Migrated the update doctests. Thanks to Eric Florenzano. 2010-09-13 05:28:10 +00:00
user_commands Migrated user_commands doctests. Thanks to Eric Florenzano. 2010-09-13 05:28:01 +00:00
validation Fixed #5416 -- Added TestCase.assertNumQueries, which tests that a given function executes the correct number of queries. 2010-10-12 03:33:19 +00:00
validators Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +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