mirror of https://github.com/django/django.git
Removed test of connection features before setting up databases
This commit is contained in:
parent
ad47364dd3
commit
ef906b1632
|
@ -251,11 +251,10 @@ class Sqlite3InMemoryTestDbs(unittest.TestCase):
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
other = db.connections['other']
|
other = db.connections['other']
|
||||||
self.assertIsNone(other.features.supports_transactions)
|
|
||||||
DjangoTestSuiteRunner(verbosity=0).setup_databases()
|
DjangoTestSuiteRunner(verbosity=0).setup_databases()
|
||||||
msg = "DATABASES setting '%s' option set to sqlite3's ':memory:' value shouldn't interfere with transaction support detection." % option
|
msg = "DATABASES setting '%s' option set to sqlite3's ':memory:' value shouldn't interfere with transaction support detection." % option
|
||||||
# Transaction support should be properly initialised for the 'other' DB
|
# Transaction support should be properly initialised for the 'other' DB
|
||||||
self.assertIsNotNone(other.features.supports_transactions, msg)
|
self.assertTrue(other.features.supports_transactions, msg)
|
||||||
# And all the DBs should report that they support transactions
|
# And all the DBs should report that they support transactions
|
||||||
self.assertTrue(connections_support_transactions(), msg)
|
self.assertTrue(connections_support_transactions(), msg)
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue