1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Called table_names instead of get_table_list in migrations

This commit is contained in:
Claude Paroz
2014-09-21 00:29:13 +02:00
parent ed297061a6
commit 2a1bdf5ced
5 changed files with 10 additions and 10 deletions

View File

@@ -15,11 +15,11 @@ class MigrationTestBase(TransactionTestCase):
def assertTableExists(self, table):
with connection.cursor() as cursor:
self.assertIn(table, connection.introspection.get_table_list(cursor))
self.assertIn(table, connection.introspection.table_names(cursor))
def assertTableNotExists(self, table):
with connection.cursor() as cursor:
self.assertNotIn(table, connection.introspection.get_table_list(cursor))
self.assertNotIn(table, connection.introspection.table_names(cursor))
def assertColumnExists(self, table, column):
self.assertIn(column, [c.name for c in self.get_table_description(table)])