mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #30457 -- Added TestCase.captureOnCommitCallbacks().
This commit is contained in:
committed by
Mariusz Felisiak
parent
ca6c5e5fc2
commit
e906ff6fca
@@ -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
|
||||
~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user