django1/tests/modeltests
Ramiro Morales da5c766dbb Tweaked test added in r16873 so it also works with Oracle.
* Changed invalid fixture from trying to insert a NULL value in a
  null=False CharField to try with a DateTimeField instead because our
  Oracle backend allows NULLs for CharFields than can be blank and that
  insert wouldn't generate an error.

* cx_Oracle raises a
  `DatabaseError: Could not load fixtures.Article(pk=1): ORA-01407: cannot update ("USER_DEFAULT"."FIXTURES_ARTICLE"."PUB_DATE") to NULL'`
  instead of an IntegrityError like the rest of the DB-API drivers we
  support, changed the error message we test for to start simply with
  'Error' to catch both messages.

  We might want to consider converting DatabaseError to IntegrityError
  in the backend when the error code is ORA-1407.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17 03:29:07 +00:00
..
aggregation Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
basic Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
delete Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
empty Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
fixtures Tweaked test added in r16873 so it also works with Oracle. 2011-10-17 03:29:07 +00:00
fixtures_model_package Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
force_insert_update Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
generic_relations Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
invalid_models Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
lookup Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
many_to_one Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
many_to_one_null Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
model_forms Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
model_formsets Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
pagination Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
prefetch_related Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
properties Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
proxy_model_inheritance Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
proxy_models Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
select_related Switch several assertNumQueries to use the context manager, which is much more beautiful. 2011-10-14 17:03:08 +00:00
serializers Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
transactions Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +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 Convert all modeltests to use absolute imports, rather than relative ones. 2011-10-13 18:04:12 +00:00
validation Made an `AutoField` test more robust. 2011-10-16 06:57:25 +00:00
validators Fixed #811 -- Added support for IPv6 to forms and model fields. Many thanks to Erik Romijn. 2011-06-11 13:48:24 +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