#23746: Allow assertNumQueries to clear caches before it runs
-----------------------------------+------------------------------------
     Reporter:  wrwrwr             |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  master
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  1                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  1
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------
Changes (by timgraham):

 * needs_better_patch:  0 => 1
 * stage:  Unreviewed => Accepted
 * type:  Bug => New feature


Comment:

 The idea seems good, but rather than hard-coding a list of functions in
 `clear_query_caches()` I think it would be better to have some way to
 register a function to be included in that list. That way third-party code
 that uses caching can also take advantage of the functionality.

--
Ticket URL: <https://code.djangoproject.com/ticket/23746#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.d0bad9d38ef0c1ea2b51d67839abfc7b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to