~/talk

TDD for APIs

Talkat EuroPython 2015 · 2015-07-20..07-26· [testing, django]
links:none on file
slides:none on file

Claims that TDD shapes API design into a usable product, implemented with py.test and django, and proven on a 12 month project that produces ~3,000 tests (about 2,000 unit and many acceptance tests). Tests run in CI in about 45 minutes after optimization. The suite covers versioned endpoints, isolates integration tests in a separate package, validates Celery asynchronous flows end‑to‑end, and lets the team refactor behavior safely.

AI-written summary · about

  1. 0:00Intro
  2. 1:25About me
  3. 2:35How can we validate
  4. 3:50Why TDD
  5. 5:41API Architecture
  6. 6:08API Isolation
  7. 7:31API Output
  8. 8:47Unknown
  9. 10:28Unit tests
  10. 11:04Acceptance tests
  11. 11:59BDD cycle
  12. 14:35Test numbers
  13. 15:33Test architecture
  14. 18:56Test from the beginning
  15. 19:09TDD principle
  16. 20:10Test environment setup
  17. 23:28Versioning endpoints
  18. 24:18Asynchronous behaviors
  19. 25:45Celery Cash
  20. 28:32Celery Helper
  21. 29:02More Tests
  22. 30:40Inverse Design
  23. 34:09Lessons Learned
  24. 35:26Questions
~/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.