django1/tests/modeltests
Anssi Kääriäinen d5b93d3281 Fixed #10494 -- Added kwargs to QuerySet.get() error message in the case no objects were found.
Thanks brondsem for the report, Szymon Pyzalski for the patch and oinopion for review.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2012-04-20 11:09:32 +00:00
..
aggregation Renamed the fixtures used by the aggregation tests so they're only loaded by the tests that use them. Refs #17275. 2011-11-27 10:31:26 +00:00
basic Fixed #10494 -- Added kwargs to QuerySet.get() error message in the case no objects were found. 2012-04-20 11:09:32 +00:00
choices Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
custom_columns Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
custom_managers Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
custom_methods Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
custom_pk Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
defer Refs #17876: enhanced new test to actually test underlying function, not just ensure trying to use it does not raise an exception. Thanks Przemek Lewandowski. 2012-03-13 01:01:22 +00:00
delete Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
distinct_on_fields Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
empty Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
expressions Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
field_defaults Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
field_subclassing Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
files Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
fixtures Changed the fixtures used to test the 'initial_data' feature so they don't contain datetimes. Refs #17275. 2011-11-27 13:00:56 +00:00
fixtures_model_package Changed the fixtures used to test the 'initial_data' feature so they don't contain datetimes. Refs #17275. 2011-11-27 13:00:56 +00:00
force_insert_update Fixed various dodgy behaviours 2011-12-17 17:37:24 +00:00
generic_relations Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger. 2012-01-31 20:36:11 +00:00
get_latest Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
get_object_or_404 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
get_or_create Fixed #16340 -- Made `get_or_create()` re-raise any `IntegrityError` with its original traceback. Thanks to d0ugal and Jonas Obrist. 2012-01-02 21:30:47 +00:00
invalid_models Fixed #8291 -- Allowed 'pk' to be used as an ordering option in `Model.Meta`. Thanks to peterd12 for the report and to evan_schulz, gruszczy, frog32 and David Gouldin for their work on the patch. 2012-02-04 19:56:40 +00:00
lookup Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
m2m_and_m2o Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2m_intermediary Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2m_multiple Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2m_recursive Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2m_signals Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2m_through Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
m2o_recursive Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
many_to_many Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
many_to_one Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
many_to_one_null Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
model_forms Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
model_formsets Fixed #16921 -- Added assertHTMLEqual and assertHTMLNotEqual assertions, and converted Django tests to use them where appropriate. Thanks Greg Müllegger. 2012-01-31 20:36:11 +00:00
model_inheritance Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
model_inheritance_same_model_name Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
model_package Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
mutually_referential Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
one_to_one Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
or_lookups Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
order_with_respect_to Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
ordering Fixed #8291 -- Allowed 'pk' to be used as an ordering option in `Model.Meta`. Thanks to peterd12 for the report and to evan_schulz, gruszczy, frog32 and David Gouldin for their work on the patch. 2012-02-04 19:56:40 +00:00
pagination Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
prefetch_related Fixed #17439 -- Prevented spurious queries for missing objects after prefetch_related has run. 2012-04-11 21:11:22 +00:00
properties Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
proxy_model_inheritance Fixed #18083 -- Fixed cascade deletion with proxy model of concrete subclass. Thanks Simon Charette for report and patch. 2012-04-09 22:41:20 +00:00
proxy_models Reverted parts of r16963 to fix a regression on the creation of permissions on proxy models. Refs #17904. Thanks koenb for the report and claudep for the patch. 2012-03-22 08:49:48 +00:00
raw_query Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
reserved_names Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
reverse_lookup Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
save_delete_hooks Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
select_for_update Fixed #17251 -- In the select_for_update tests, close manually database connections made in threads, so they don't stay "idle in transaction" until the GC deletes them. Thanks Anssi Kääriäinen for the report and patch. 2011-12-11 08:43:01 +00:00
select_related Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
serializers Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
signals Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
str Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
tablespaces Modified the tablespaces tests so that they no longer rely on settings.DEFAULT_INDEX_TABLESPACE being empty. Refs #12308. 2011-10-15 15:54:53 +00:00
test_client Converted more test assertions to assert[Not]Contains. 2012-04-14 13:35:25 +00:00
timezones Use the class decorator syntax available in Python >= 2.6. Refs #17965. 2012-03-30 09:08:29 +00:00
transactions Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
unmanaged_models Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
update Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
user_commands Removed with_statement imports, useless in Python >= 2.6. Refs #17965. Thanks jonash for the patch. 2012-03-30 08:02:08 +00:00
validation Removed deprecated URLField.verify_exists. 2012-03-31 13:55:03 +00:00
validators Fixed #17100 -- Typo in the regex for EmailValidator. Thanks reames AT asymmetricventures com for the report and Claude Paroz for the patch. 2012-01-07 18:43:46 +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