Defined available_apps in relevant tests.

Fixed #20483.
This commit is contained in:
Aymeric Augustin 2013-06-04 08:09:29 +02:00
parent 4daf570b98
commit c6e6d4eeb7
26 changed files with 142 additions and 2 deletions

View file

@ -345,6 +345,8 @@ class PostgresNewConnectionTest(TestCase):
# connection would implicitly rollback and cause problems during teardown.
class ConnectionCreatedSignalTest(TransactionTestCase):
available_apps = []
# Unfortunately with sqlite3 the in-memory test database cannot be closed,
# and so it cannot be re-opened during testing.
@skipUnlessDBFeature('test_db_allows_multiple_connections')
@ -514,6 +516,8 @@ class BackendTestCase(TestCase):
# verify if its type is django.database.db.IntegrityError.
class FkConstraintsTests(TransactionTestCase):
available_apps = ['backends']
def setUp(self):
# Create a Reporter.
self.r = models.Reporter.objects.create(first_name='John', last_name='Smith')
@ -777,6 +781,9 @@ class MySQLPKZeroTests(TestCase):
class DBConstraintTestCase(TransactionTestCase):
available_apps = ['backends']
def test_can_reference_existant(self):
obj = models.Object.objects.create()
ref = models.ObjectReference.objects.create(obj=obj)