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...
Software Engineer
Markdown supported · ⌘↵ to post
No responses yet.