How to run an instance of a parameterized fixture only against a certain test module. #10653
-
After spending quite some time trawling through documentation about parameterized fixtures, I was unable to figure out if it's possible to use separate instances of a parameterized fixture only with a certain test module. My parametrized fixture inside my conftest.py below hits an API and gets a dictionary of devices to test against. I have separate test modules for different device types (rr, cr, bdr and pe). Is it possible to use an instance of my fixture i.e. request.params=rr only for the rr test module? Or would I have to copy and paste the fixture into each test module instead and then change the one parameter?
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Parametrize happens before fixtures, so no |
Beta Was this translation helpful? Give feedback.
Parametrize happens before fixtures, so no