diff options
| author | Adam Johnson <me@adamj.eu> | 2020-05-20 11:04:36 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-07-13 11:56:46 +0200 |
| commit | e906ff6fca291fc0bfa0d52f05817ee9dae0335d (patch) | |
| tree | 23f2d6788f6fb7b95b9bb3809f4c48138910373f /docs/releases | |
| parent | ca6c5e5fc23f2855a7094d195f09975b21a7ec3f (diff) | |
Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/3.2.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index 653e14a3a1..e0e80323e3 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -276,6 +276,11 @@ Tests * :class:`~django.test.Client` now preserves the request query string when following 307 and 308 redirects. +* The new :meth:`.TestCase.captureOnCommitCallbacks` method captures callback + functions passed to :func:`transaction.on_commit() + <django.db.transaction.on_commit>` in a list. This allows you to test such + callbacks without using the slower :class:`.TransactionTestCase`. + URLs ~~~~ |
