Changes between Initial Version and Version 1 of Ticket #23746, comment 3
- Timestamp:
- Nov 4, 2014, 6:50:16 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23746, comment 3
initial v1 1 1 A somewhat [https://github.com/wrwrwr/django/compare/ticket_23746?expand=1 different solution], with the same effect: 2 2 * 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. 4 4 5 5 There 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.