Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed introspection test case which caused "ORA-00972: identi…

…fier is too long" errors against Oracle.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c17547ac50959f7df9e2b8288bae55806c433782 1 parent 5acc583
Matt Boersma authored April 17, 2009
12  tests/regressiontests/introspection/tests.py
@@ -50,10 +50,10 @@ def test_table_names(self):
50 50
 
51 51
     def test_django_table_names(self):
52 52
         cursor = connection.cursor()
53  
-        cursor.execute('CREATE TABLE django_introspection_test_table (id INTEGER);');
  53
+        cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);');
54 54
         tl = connection.introspection.django_table_names()
55  
-        cursor.execute("DROP TABLE django_introspection_test_table;")
56  
-        self.assert_('django_introspection_testcase_table' not in tl,
  55
+        cursor.execute("DROP TABLE django_ixn_test_table;")
  56
+        self.assert_('django_ixn_testcase_table' not in tl,
57 57
                      "django_table_names() returned a non-Django table")
58 58
 
59 59
     def test_installed_models(self):
@@ -83,9 +83,9 @@ def test_get_table_description_types(self):
83 83
     if settings.DATABASE_ENGINE.startswith('postgresql'):
84 84
         def test_postgresql_real_type(self):
85 85
             cursor = connection.cursor()
86  
-            cursor.execute("CREATE TABLE django_introspection_real_test_table (number REAL);")
87  
-            desc = connection.introspection.get_table_description(cursor, 'django_introspection_real_test_table')
88  
-            cursor.execute('DROP TABLE django_introspection_real_test_table;')
  86
+            cursor.execute("CREATE TABLE django_ixn_real_test_table (number REAL);")
  87
+            desc = connection.introspection.get_table_description(cursor, 'django_ixn_real_test_table')
  88
+            cursor.execute('DROP TABLE django_ixn_real_test_table;')
89 89
             self.assertEqual(datatype(desc[0][1]), 'FloatField')
90 90
 
91 91
     def test_get_relations(self):

0 notes on commit c17547a

Please sign in to comment.
Something went wrong with that request. Please try again.