~/talk

Empathetic testing: Developing with compassion and humility

Talkat DjangoCon US 2023 · 2023-10-16..10-20· [testing]
slides:none on file

Tests defend the way code was written, not what it does: a calculator API breaks only when numpy’s ipmt moves into numpy_financial, leaving 100% coverage that lied while the app fails. Examples replace fragile mocks with real-client requests, pyquery HTML parsing, responses to intercept HTTP calls, and freezegun to freeze timestamps so assertions are stable. The claim: focus tests on inputs and outputs to avoid implementation bias, reduce code, and keep three integration-style checks that still pass after a refactor.

AI-written summary · about

  1. 0:00Introduction
  2. 3:31Frustration in testing
  3. 6:46Implementation bias in tests
  4. 9:15Empathetic API tests
  5. 11:42Django admin testing
  6. 13:49Avoiding HTTP mocks
  7. 15:55Datetime in assertions
  8. 17:42Refactoring with empathy
  9. 20:52Edge cases and scalability
  10. 22:00Why refactoring matters for developers
  11. 23:27Takeaways and future-proofing
  12. 24:51Self-reflection in testing
  13. 25:17Closing
~/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.