Dynamically generate fixtures (again) #6322
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
Suggestion/Question:
I am trying to generate dynamic fixtures based on another class that does dependency injection similar to pytest. The dependencies are represented as a dict, which I am hoping to just generate identically named fixtures to make those accessible in test code without having a lot of boilerplate code. I found #2424 (comment) and this works fine for any of the test functions I write, but doesn't work if another fixture has a dependency on one of these "autogenerated" fixtures.
Any advice on how I can expand the above link to support both test cases and fixtures?
The text was updated successfully, but these errors were encountered: