mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fix some small errors in the tests
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
from django.test import TestCase
|
||||
from django.test import TransactionTestCase
|
||||
from django.db import connection
|
||||
|
||||
|
||||
class MigrationTestBase(TestCase):
|
||||
class MigrationTestBase(TransactionTestCase):
|
||||
"""
|
||||
Contains an extended set of asserts for testing migrations and schema operations.
|
||||
"""
|
||||
|
||||
available_apps = ["migrations"]
|
||||
|
||||
def assertTableExists(self, table):
|
||||
self.assertIn(table, connection.introspection.get_table_list(connection.cursor()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user