Document how to build dynamic session-scoped fixtures #10156
Labels
status: help wanted
developers would like help from experts on this topic
topic: fixtures
anything involving fixtures directly or indirectly
type: docs
documentation improvement, missing or needing clarification
My particular case was that I wanted a session-scoped fixture which was parametrized by some CLI arguments.
This was much tougher than I expected it to be, and I think a doc example would help. I'm more than happy to write it up, but want to first make sure it's a welcome contribution.
The answer is a variant on the one provided many years ago here:
#2959 (comment)
The only thing which needs a tweak is the self-arg. Combined with py3-only, and fleshed out with a CLI option, it becomes something like:
The text was updated successfully, but these errors were encountered: