~/talk

End-to-end testing Django applications using Pytest with Playwright

Talkat DjangoCon Europe 2025 · 2025-04-23..04-27· [python, testing]
links:none on file
slides:none on file

A Django HTMX to‑do app is tested with pytest and Playwright, using BeautifulSoup for HTML assertions and the live_server and page fixtures to run a real browser against a running Django process. Unit-style tests run in about 0.5s, full end-to-end Playwright tests about 2s. Playwright’s expect/expect_response replaces sleeps to avoid flakiness, Playwright Python lacks JS coverage, and the recommended strategy is a mix of fast unit tests plus targeted e2e checks.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Why Playwright
  3. 5:02Pytest vs Django tests
  4. 7:31Fullstack testing challenges
  5. 9:17Playwright overview
  6. 12:51Testing with Beautiful Soup
  7. 13:55End-to-end with Playwright
  8. 17:25Demo introduction
  9. 18:05Live demo setup
  10. 23:46Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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.