emattiza, 3 months ago @markwalker You can import CaptureQueriesContext from django.test.utils (assertNumQueries uses this indirectly). Give it a grep on the django github repo and youll find some tests which show a bit how to use it over a connection import.
@markwalker You can import CaptureQueriesContext from django.test.utils (assertNumQueries uses this indirectly). Give it a grep on the django github repo and youll find some tests which show a bit how to use it over a connection import.