Climbing Out of Fixture Hell, Indirectly - Sammie Jiang - PyCascades 2026 @PyCascades
Climbing Out of Fixture Hell, Indirectly - Sammie Jiang - PyCascades 2026  @PyCascades
Uploaded May 2026 | Updated December 2026, 3 hours ago
Once you've moved past the basics of assert and test_ functions, developers often run into a new set of challenges when projects and test suites grow in complexity. This talk explores using pytest's indirect fixtures to create modular, maintainable test suites that scale with your codebase.

Fixture overuse and mismanagement is one of the most common areas of difficulty with testing/pytest

passing data to fixtures: they want to parametrize a fixture itself (this is how I initially discovered indirect parametrization)
fixture hell: conftest.py becomes a dumping ground for poorly named, complex, and interdependent fixtures, making it hard to comprehend what a single test is doing
scope confusion: struggles with when to use function, class, module or session scopes that lead to tests that are either slow (re-creating expensive resources for every test) or flaky (tests interfering with each other via session-scoped fixtures).

You'll discover how indirect=True parametrization can elegantly address each of these pain points and see examples of how to refactor messy, hard-to-read tests into clean, declarative patterns. Come away with a clearer mental model of fixture scopes and how to optimize them to reduce test run times.

This talk is for intermediate developers who have basic experience with fixtures and parametrization, who may have encountered the pain points of maintaining a growing test suite.
Climbing Out of Fixture Hell, Indirectly - Sammie Jiang - PyCascades 2026Quantifying Nebraska - Adam Harvey (PyCascades 2025)PyCascades 2020 Day 1:MorningNotably Inaccessible   Data Driven Understanding of Jupyter Notebook Inaccessibility - Venkatesh PThe Future of Python: Evolution or Succession? - Brett SlatkinSparking Creativity in LED Art with CircuitPython - Debra Ansell (PyCascades 2021)Embracing MLOps: Bridging the Gap Between Machine Learning and DevOps - Mayank JindalPyLadies Panel: Talking about experiences and roles within the Python community (PyCascades 2024)Permacomputing and Python -  Łukasz Langa - PyCascades 2026Closing Remarks Day 2 - Britt Gresham, Madison Swain-Bowden (PyCascades 2022)PyLadies Panel: Experiences and Roles within the Tech Community and Open Source (PyCascades 2025)Norah Klintberg Sakal: Guide to your own artificial intelligence application in 3 easy steps
PyCascades |

Climbing Out of Fixture Hell, Indirectly - Sammie Jiang - PyCascades 2026

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER