mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Called table_names instead of get_table_list in migrations
This commit is contained in:
parent
ed297061a6
commit
2a1bdf5ced
5 changed files with 10 additions and 10 deletions
|
|
@ -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)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue