How to add a fixture from pytest_generate_tests? #12205
-
Hi, example of my attempt:
The test, naturally, is not aware of the "myfix" parameter, and I want to have this similar to an autouse fixture (only for the relevant test). I have seen the question here:#10686, but at least since this PR: #11209, the answer there is not possible. Even after trying to copy the FuncFixtureInfo object, code isn't being executed. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
alering fixturenames has no safe effect - please add a usefixtures marker to the metafunc.definition node |
Beta Was this translation helpful? Give feedback.
this is possibly a interaction bug - mast likely related to when/how fixturenames is set up
we need to open a issue on this (as its not something i myself can work on soonish)