mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user