mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
parent
4daf570b98
commit
c6e6d4eeb7
26 changed files with 142 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue