mirror of
https://github.com/django/django.git
synced 2025-12-15 21:45:20 +00:00
Fix some small errors in the tests
This commit is contained in:
parent
beefac8aae
commit
ac45f9c9c5
4 changed files with 18 additions and 10 deletions
|
|
@ -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()))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue