summaryrefslogtreecommitdiff
path: root/tests/introspection/tests.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@oscaro.com>2014-06-05 17:56:56 +0200
committerAymeric Augustin <aymeric.augustin@oscaro.com>2014-06-05 17:56:56 +0200
commita03d38ddd43957a402b64caddf74a73df72140fb (patch)
treed4d22847367efb130ee95179b45c5c3dc4ecfdd8 /tests/introspection/tests.py
parent237c229b91ae852ac5f4f0a52b37de3e243ee61f (diff)
downloaddjango-a03d38ddd43957a402b64caddf74a73df72140fb.tar.gz
Added a flag for the ability to introspect nullable fields.
Previously this was conflated with another Oracle-specific behavior.
Diffstat (limited to 'tests/introspection/tests.py')
-rw-r--r--tests/introspection/tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py
index fee6e59544..432658c21f 100644
--- a/tests/introspection/tests.py
+++ b/tests/introspection/tests.py
@@ -1,7 +1,7 @@
from __future__ import unicode_literals
from django.db import connection
-from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature
+from django.test import TestCase, skipUnlessDBFeature
from .models import Reporter, Article
@@ -73,10 +73,9 @@ class IntrospectionTests(TestCase):
[30, 30, 75]
)
- # Oracle forces null=True under the hood in some cases (see
- # https://docs.djangoproject.com/en/dev/ref/databases/#null-and-empty-strings)
- # so its idea about null_ok in cursor.description is different from ours.
- @skipIfDBFeature('interprets_empty_strings_as_nulls')
+ # The following test fails on Oracle. Since it forces null=True under the
+ # hood in some cases, its idea about null_ok is different from ours.
+ @skipUnlessDBFeature('can_introspect_null')
def test_get_table_description_nullable(self):
with connection.cursor() as cursor:
desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)