mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Deprecated transaction.is_managed().
It's synchronized with the autocommit flag.
This commit is contained in:
parent
ba5138b1c0
commit
3bdc7a6a70
7 changed files with 23 additions and 30 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue