mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Deprecated transaction.is_managed().
It's synchronized with the autocommit flag.
This commit is contained in:
@@ -689,7 +689,7 @@ class TransactionMiddlewareTest(TransactionTestCase):
|
||||
|
||||
def test_request(self):
|
||||
TransactionMiddleware().process_request(self.request)
|
||||
self.assertTrue(transaction.is_managed())
|
||||
self.assertFalse(transaction.get_autocommit())
|
||||
|
||||
def test_managed_response(self):
|
||||
transaction.enter_transaction_management()
|
||||
|
||||
Reference in New Issue
Block a user