~/talk

How to test Python-y libraries

TalkinRussianat PyCon Russia 2024 · 2024-07-26..07-27· [testing]
links:none on file
slides:none on file

Practical advice on testing Python libraries, arguing that investment in library tests yields more value than equal effort on business-logic tests. Covers strategies to make library code robust against breakage of higher-level abstractions, with techniques and guidelines to keep libraries from becoming fragile.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Why write libraries
  3. 2:39Library abstraction pyramid
  4. 5:13Testing reliability
  5. 7:19Quality gates
  6. 8:03Splitting libraries
  7. 10:56Injecting side effects
  8. 14:32Library types
  9. 15:56100% coverage rule
  10. 17:21Coverage visibility
  11. 18:23Mutation testing
  12. 20:55Test quantity vs quality
  13. 21:19Documentation testing
  14. 22:45Testing code examples
  15. 23:28Test file structure
  16. 24:10Matrix testing
  17. 25:58CI setup
  18. 26:20Plugin compatibility
  19. 27:23Test docstrings
  20. 28:26Thread safety testing
  21. 29:27Summary
  22. 31:11Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.