Struggling to manage complex test scenarios in pytest? Try out Param Classes as a way of organizing and enriching your parameters!

https://sirosen.net/2026/02/27/pytest-param-classes.html

(Thanks to @nedbat for the inspiring material and encouraging words! Nothing helps me get things done quite like saying in public that I'm going to do them. 😅 )

Stephen Rosen

@sirosen This is great, thanks. I wish there were a way to use a class and also have the test function take individual arguments without having to unpack them in the test function :(