~/talk

The Testing Pyramid in Practice for Django

Talkat DjangoCon US 2026 · 2026-08-24..08-28· [testing, django]
slides:none on file

Argues that following a deliberate testing pyramid reduces slow, flaky Django suites and shows exactly where to put tests: fast unit tests without DB, mid-level integration tests that exercise the ORM and APIs, and a small set of E2E UI tests. Demonstrates Django test-runner tips like assertNumQueries and duration reporting, parallel DB cloning, and use of pytest plus browser tools Selenium/Playwright/Cypress. Describes mocking external APIs and when to choose DB vs no-DB tests.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:47Testing pyramid origins and types
  3. 4:13Unit testing in Django
  4. 6:54Integration testing in Django
  5. 8:29End-to-end testing in Django
  6. 10:20PyTest and testing tools
  7. 12:51Choosing test types and Q&A
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.