~/talk

Why I use py.test and maybe you should too

Talkat PyCon Australia 2013 · 2013-07-05..07-07· [testing, developer-experience]
name:Andy Todd
links:none on file
slides:none on file

Argues that pytest makes it dramatically easier to start unit testing by reducing boilerplate (example: four-line pytest vs nine-line unittest) and offering pytest auto-discovery, parametrization, fixtures and plugins; demonstrates testing a URI-splitting function and adding a failing ValueError test first, then fixing code; recommends the iterative write failing test for every bug approach, using module/class-level setup to avoid expensive repeated teardowns, and tools like coverage.py, testtools and testfixtures for larger projects.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Unit testing principles
  3. 8:07Key advantages
  4. 15:00Writing less code
  5. 16:33Bug triage
  6. 21:04Where to put your tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.