summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Boersma <matt@sprout.org>2009-04-16 22:32:48 +0000
committerMatt Boersma <matt@sprout.org>2009-04-16 22:32:48 +0000
commit800311964e0325545552febde0e092f93a12208f (patch)
tree43dc886e29016e39417310851c1027817a7c24b7
parentff9b9e530c0cd4c62e279da0aed11ed426da59dc (diff)
Fixed introspection test case which caused "ORA-00972: identifier is too long" errors against Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/introspection/tests.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/regressiontests/introspection/tests.py b/tests/regressiontests/introspection/tests.py
index 9941c57419..7072dc8e9e 100644
--- a/tests/regressiontests/introspection/tests.py
+++ b/tests/regressiontests/introspection/tests.py
@@ -50,10 +50,10 @@ class IntrospectionTests(TestCase):
def test_django_table_names(self):
cursor = connection.cursor()
- cursor.execute('CREATE TABLE django_introspection_test_table (id INTEGER);');
+ cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);');
tl = connection.introspection.django_table_names()
- cursor.execute("DROP TABLE django_introspection_test_table;")
- self.assert_('django_introspection_testcase_table' not in tl,
+ cursor.execute("DROP TABLE django_ixn_test_table;")
+ self.assert_('django_ixn_testcase_table' not in tl,
"django_table_names() returned a non-Django table")
def test_installed_models(self):
@@ -83,9 +83,9 @@ class IntrospectionTests(TestCase):
if settings.DATABASE_ENGINE.startswith('postgresql'):
def test_postgresql_real_type(self):
cursor = connection.cursor()
- cursor.execute("CREATE TABLE django_introspection_real_test_table (number REAL);")
- desc = connection.introspection.get_table_description(cursor, 'django_introspection_real_test_table')
- cursor.execute('DROP TABLE django_introspection_real_test_table;')
+ cursor.execute("CREATE TABLE django_ixn_real_test_table (number REAL);")
+ desc = connection.introspection.get_table_description(cursor, 'django_ixn_real_test_table')
+ cursor.execute('DROP TABLE django_ixn_real_test_table;')
self.assertEqual(datatype(desc[0][1]), 'FloatField')
def test_get_relations(self):