Explore the hook-based plugin architecture of py.test in this informative EuroPython 2015 conference talk. Delve into the flexible and powerful plugin system that forms the foundation of py.test, now available as a standalone package. Learn how the architecture enables easy extensibility through defined extension points implemented using hook functions in plugins. Discover how plugins can both call hooks and define new extension points, creating a highly adaptable design. Gain insights into py.test's ground-up implementation using built-in plugins and understand how this architecture has proven effective for both command-line tools and long-running daemons. Examine the mechanics of passing arguments and handling return values in 1:N hook calls. Acquire knowledge on designing applications entirely composed of plugins, providing a comprehensive understanding of plugin functionality in py.test. Access accompanying slides and Org-mode source for further reference.
Overview
Syllabus
Floris Bruynooghe - The hook-based plugin architecture of py.test
Taught by
EuroPython Conference