#30457: on_commit should be triggered in a TestCase
------------------------------------+------------------------------------
     Reporter:  Bernhard Mäder      |                    Owner:  nobody
         Type:  New feature         |                   Status:  new
    Component:  Documentation       |                  Version:  master
     Severity:  Normal              |               Resolution:
     Keywords:  on_commit TestCase  |             Triage Stage:  Accepted
    Has patch:  0                   |      Needs documentation:  0
  Needs tests:  0                   |  Patch needs improvement:  0
Easy pickings:  0                   |                    UI/UX:  0
------------------------------------+------------------------------------

Comment (by Adam (Chainz) Johnson):

 I've also tested this with unittest.mock.patch on transaction.on_commit,
 checking it was invoked enough times, then invoking the collected
 functions in the tests.

 A helper in django.test.utils would be cool.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30457#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.09aa8c5f33b999d6faf9634e5948e067%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to