~/talk

The hook-based plugin architecture of py.test

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

py.test uses a hook-based plugin system split out as the standalone pluggy package that implements extension points as hook specifications (function signatures) and calls plugins by name. It handles optional arguments by signature inspection, returns a list for one-to-many hook calls, supports hook ordering and wrapping, lets plugins register more hooks, and allows runtime register/unregister. Examples include a requests-based demo that lets plugins mutate headers and a CLI that lets plugins add arguments and manage a session. The package is pre-1.0 and uses semantic versioning.

AI-written summary · about

  1. 0:00Start
  2. 7:57THE PLUGIN MANAGER
  3. 11:59CALLING THE HOOK
  4. 22:28HANDLING COMMAND LINE ARGUMENTS
  5. 24:31PY.TEST HOOKS
~/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.