mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
improve wording
This commit is contained in:
parent
8ad38208a1
commit
34dc98e8ad
|
@ -62,10 +62,12 @@ class DBTransactionErrorTests(TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
connections.databases['default']['ATOMIC_REQUESTS'] = False
|
connections.databases['default']['ATOMIC_REQUESTS'] = False
|
||||||
|
|
||||||
def test_error_rollback_transaction(self):
|
def test_generic_exception_delegate_transaction_management(self):
|
||||||
"""
|
"""
|
||||||
Transaction is eventually managed by outer-most transaction atomic
|
Transaction is eventually managed by outer-most transaction atomic
|
||||||
block. DRF do not try to interfere here.
|
block. DRF do not try to interfere here.
|
||||||
|
|
||||||
|
We let django deal with the transaction when it will catch the Exception.
|
||||||
"""
|
"""
|
||||||
request = factory.post('/')
|
request = factory.post('/')
|
||||||
with self.assertNumQueries(3):
|
with self.assertNumQueries(3):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user