~/talk

Unit tests and TDD does NOT have to be boring

Talkat PyCon Israel 2017 · 2017-06-11..06-13· [testing, career-development]
links:none on file
slides:none on file

Shows how writing HTTP test client tests for a bank-account API (GET list, POST create, PATCH update) forces specific assertions: exact JSON fields, HTTP status codes, and error messages. Uses fake-data generators to post accounts, verifies database values and that UI sees only last four digits masking. Tests reveal and help fix integration bugs quickly, let front-end work independently, and yield reproducible one-command debugging and clearer 70–80% coverage targets.

AI-written summary · about

  1. 0:00Intro
  2. 0:44Why write unit tests
  3. 1:24Code quality
  4. 4:24Testdriven development
  5. 5:50Project example
  6. 8:29Python API
  7. 10:30Unit tests
  8. 13:14Writing Python code
  9. 14:09The results
  10. 16:48TDD benefits
  11. 17:11Test cases
  12. 18:17Debugging
  13. 18:48Helpful bug
  14. 19:54Code coverage
~/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.