~/talk

Adv. Software Testing for Data Scientists

Talkat PyData London 2019 · 2019-07-12..07-14· [testing]
links:none on file
slides:none on file

Workshop demonstrates concrete practices: use pytest for low-boilerplate unit tests, numpy/pandas-specific assertions like pandas.assert_frame_equal, property-based testing with hypothesis that generates ~100 examples and finds a double-slash slug bug (split('/', 1) fixes it), and test doubles/mocks with controlled mock side_effect to replace REST or S3 calls. Codebase is a Kickstarter dataset, a scikit-learn logistic regression pipeline serialized to joblib, and the demos show which tests fail, which inputs are generated, and the exact fixes that make them pass.

AI-written summary · about

  1. 0:00Welcome
  2. 3:37Setup tutorial environment
  3. 8:46Testing matters for data scientists
  4. 17:35Python testing tools overview
  5. 23:15Unit testing with pytest
  6. 26:28Pandas test patterns
  7. 32:29Parameterized pytest testing
  8. 43:03Maintainable test writing
  9. 54:20Property-based testing intro
  10. 1:01:31Hypothesis input generation
  11. 1:18:07Static type checking
  12. 1:19:34Mocking dependencies
  13. 1:28:09Q&A
~/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.