0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Modified a test added in r17508 to not run under Oracle.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Ramiro Morales 2012-03-03 17:16:43 +00:00
parent 3576c99f74
commit 3b2c53ac69

View File

@ -3,7 +3,7 @@ from __future__ import absolute_import
from functools import update_wrapper
from django.db import connection
from django.test import TestCase, skipUnlessDBFeature
from django.test import TestCase, skipUnlessDBFeature, skipIfDBFeature
from .models import Reporter, Article
@ -89,6 +89,10 @@ class IntrospectionTests(TestCase):
['IntegerField', 'CharField', 'CharField', 'CharField', 'BigIntegerField']
)
# 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.drescription is different from ours
@skipIfDBFeature('interprets_empty_strings_as_nulls')
def test_get_table_description_nullable(self):
cursor = connection.cursor()
desc = connection.introspection.get_table_description(cursor, Reporter._meta.db_table)