About CaptureQueriesContext
If you ever need to access the raw SQL executed during any unit test, the CaptureQueriesContext context manager can help. It's very simple: from django.db import connection from django.test.utils import CaptureQueriesContext def test_foo(): with C...
Jan 18, 20221 min read971