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...
til.justinthurman.dev1 min read