Changes between Initial Version and Version 1 of Ticket #23746, comment 3


Ignore:
Timestamp:
Nov 4, 2014, 6:50:16 PM (9 years ago)
Author:
Wojtek Ruszczewski

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23746, comment 3

    initial v1  
    11A somewhat [https://github.com/wrwrwr/django/compare/ticket_23746?expand=1 different solution], with the same effect:
    22* added a new `pre_capture_queries` signal sent when entering the `CaptureQueriesContext` (also for the base manager not only `assertNumQueries`);
    3 * dropped the `clear_caches` toggle as in the new context it seemed to general (which caches?); if you really want to miss some queries, selectively disconnecting their respective receivers is a less convenient, but more fine-grained option.
     3* dropped the `clear_caches` toggle as in the new context it seemed too general (which caches?); if you really want to miss some queries, selectively disconnecting their respective receivers is a less convenient, but more fine-grained option.
    44
    55There are some other possibilities to consider: -- a more general non-testing-only `clear_caches` signal, -- some `register` function on the test runner, or just bringing back the toggle for convenience.
Back to Top