mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Called table_names instead of get_table_list in migrations
This commit is contained in:
@@ -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)])
|
||||
|
||||
Reference in New Issue
Block a user