We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ad3820 commit 34dc98eCopy full SHA for 34dc98e
tests/test_atomic_requests.py
@@ -62,10 +62,12 @@ def setUp(self):
62
def tearDown(self):
63
connections.databases['default']['ATOMIC_REQUESTS'] = False
64
65
- def test_error_rollback_transaction(self):
+ def test_generic_exception_delegate_transaction_management(self):
66
"""
67
Transaction is eventually managed by outer-most transaction atomic
68
block. DRF do not try to interfere here.
69
+
70
+ We let django deal with the transaction when it will catch the Exception.
71
72
request = factory.post('/')
73
with self.assertNumQueries(3):
0 commit comments