mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks recursively.
This commit is contained in:
parent
02bc7161ec
commit
d89f976bdd
4 changed files with 27 additions and 5 deletions
|
@ -912,6 +912,11 @@ It also provides an additional method:
|
|||
self.assertEqual(mail.outbox[0].subject, 'Contact Form')
|
||||
self.assertEqual(mail.outbox[0].body, 'I like your site')
|
||||
|
||||
.. versionchanged:: 4.0
|
||||
|
||||
In older versions, new callbacks added while executing
|
||||
:func:`.transaction.on_commit` callbacks were not captured.
|
||||
|
||||
.. _live-test-server:
|
||||
|
||||
``LiveServerTestCase``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue