1
0
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:
Andrew Godwin
2013-08-23 12:07:43 +01:00
parent beefac8aae
commit ac45f9c9c5
4 changed files with 18 additions and 10 deletions

View File

@@ -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()))