diff options
| author | Eugene Morozov <jmv@emorozov.net> | 2021-08-24 23:29:55 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-08-30 07:06:22 +0200 |
| commit | d89f976bddb49fb168334960acc8979c3de991fa (patch) | |
| tree | 0af9c6e51cb89a7a895566ff9c1ad74567f75f46 /docs/topics/testing | |
| parent | 02bc7161ec477afd4a7b328936eb8adac078d7b9 (diff) | |
Fixed #33054 -- Made TestCase.captureOnCommitCallbacks() capture callbacks recursively.
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/tools.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 8e4f077fad..846d428980 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -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`` |
